// File: test6.cpp #include "boost/test/minimal.hpp" #include "boost/variant.hpp" #include #include "jobs.h" #include "varout.h" //Just Another Class struct jac { jac() { } jac(int ) { } jac(const char* ) { } }; //jac std::ostream& operator<<(std::ostream& out, const jac& ) { out << "jac "; return out; } void run() { using boost::variant; variant v1; variant v2; v1 = v2; verify(v1, spec()); verify(v2, spec()); verify_not(v1, spec()); verify_not(v1, spec()); verify_not(v1, spec()); verify_not(v2, spec()); verify_not(v2, spec()); verify_not(v2, spec()); verify_not(v2, spec()); variant v3; variant v4; v3 = v4; verify(v3, spec()); verify(v4, spec()); verify_not(v4, spec()); } int test_main(int , char* []) { run(); return 0; }