[serialization]save/load objects to/from a block of memory?
15 Aug
2005
15 Aug
'05
3:24 a.m.
Hi, How can I save/load my c++ objects to/from a block of memory using Boost.Serialization? Can anyone give some sample code? Thanks, Lirong
15 Aug
15 Aug
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
7032
Age (days ago)
7032
Last active (days ago)
1 comments
2 participants
participants (2)
-
Li Lirong
-
Martin Ecker