|
Boost Users : |
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
...
}
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net