[serialization] export.hpp (or type_info_implementation.hpp) is NOT self-contained and causes compile error

The following code should compile: #include <boost/serialization/export.hpp> class A { }; BOOST_CLASS_EXPORT( A ); instead I got: error C2027: use of undefined type 'boost::serialization::extended_type_info_impl<T>' 1> with 1> [ 1> T=A 1> ] Which file needs to be included to make this compile? Regards, Sean

Sean Huang wrote:
The following code should compile:
I believe the following change wil make this compile #include <any archive> This is a bug int the current version
#include <boost/serialization/export.hpp>
class A { }; BOOST_CLASS_EXPORT( A );
instead I got: error C2027: use of undefined type 'boost::serialization::extended_type_info_impl<T>' 1> with 1> [ 1> T=A 1> ]
Which file needs to be included to make this compile?
Regards,
Sean
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
Robert Ramey
-
Sean Huang