
Hello All, Could someone please help me to understand why code below fails to compile with STATIC_ASSERTION_FAILURE in basic_xml_iarchive.hpp // If your program fails to compile here, its most likely due to // not specifying an nvp wrapper around the variable to // be serialized. BOOST_STATIC_ASSERT(0 == sizeof(T)); Code does compile if BOOST_CLASS_EXPORT line is commeted out. #include <boost/archive/xml_iarchive.hpp> class A { friend class boost::serialization::access; template<class Archive> void serialize(Archive & ar, const unsigned int version) { ar & i; } int i; }; #include <boost/serialization/export.hpp> BOOST_CLASS_EXPORT(A) int main() { } WBR Oleg V. Zhylin ovz@yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com