
17 Apr
2007
17 Apr
'07
2:58 a.m.
try something like the following: main() { test Test(1); // I want a stringstream, as my applicion is in remote processing ostringstream oss; assert(oss.good()); { boost::archive::xml_oarchive oa(oss); oa << BOOST_SERIALIZATION_NVP(Test); } // oa destructor invoked - puts end tag on archive ... }