c++ - google test EXPECT_EQ and boost::make_recursive_variant -
I have a recursive variation as the following when I compare it using two recurring version object, it works fine Does, but with EXPECT_EQ, this gives the compilation error. typedef boost :: make_recursive_variant & lt; Bool, boost :: uint8_t, boost :: uint32_t, boost :: int32_t, double, std :: string, boost :: uuids :: uuid & gt; :: type rvariant_type; Variant_type b1 = true; Rvariant_type b2 = true; Emphasis (B1 == B2); // work fine EXPECT_EQ (B1, B2); // Compiler error returns EXPECT_EQ (boost :: get & gt; ball & gt; (b1), boost :: get & lt; balls & gt; (b2)); // work fine boost / v1.46.1 / include / boost / variant / detail / variant_io.hpp: 64: error: any match for an operator Heavy use of streams for guest output but it seems that boost: Overloaded operator Version Support for Printing via Media & lt; & Lt; Very limited, if no one is non-existent. Take a look at this: #include & lt; Boost / variant.hpp & gt; # Include ...