#include #include "MyClass.h" ClassImp(MyClass) MyClass::MyClass() { } #ifndef __CINT__ ///* remove the leading // for the definition in the header void MyClass::BoostTest(){ string f = "test"; ifstream ifs(f.c_str()); assert(ifs.good()); boost::archive::xml_iarchive ia(ifs); MyClass newMyClass; ia >> BOOST_SERIALIZATION_NVP(newMyClass); *this = newMyClass; } //*/ remove the leading // for the definition in the header #endif