From: Robert Ramey (ramey_at_[hidden])
Date: 2007-04-16 22:58:45


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
    ...
}