assertion_failed when using Boost Serialization with xml_oarchive
问题 When compiling a simple test of Boost Serialization: class Test { protected: int Num; friend class boost::serialization::access; template <class Archive> void serialize(Archive & ar, const unsigned int version) { ar & BOOST_SERIALIZATION_NVP(Num); } public: Test(): Num(0) {} ~Test() {} }; using an xml_oarchive for output, I am experiencing the following GCC error: C:\Development\Libraries\boost_1_55_0\boost\mpl\assert.hpp|289|error: no matching function for call to 'assertion_failed(mpl_: