15 Aug
2005
15 Aug
'05
8:46 p.m.
Hi, Li Lirong wrote:
How can I save/load my c++ objects to/from a block of memory using Boost.Serialization? Can anyone give some sample code?
You can simply stream into a std::stringstream: std::stringstream stream; { boost::text_oarchive oa(stream); oa << my_data; } Best Regards, Martin