Re: [boost] [serialization] Must the objects being serialized outlive the archive?

17 Sep
2010
17 Sep
'10
7:37 p.m.
Robert Ramey:
This would work. What won't work is
{ boost::scoped_ptr<Strings> s; const Strings * s = new Strings("Hello", "World")); const * x = s; oa << s; delete s; oa << x; ... }
Be sure to add the --automagically flag to get that to build.
Your making this way too hard, just look at the examples and tests to see that all you have to do is serialize though a base class pointer.
You are being sloppy. But thanks for stopping the top posting. Brian Wood Ebenezer Enterprises http://webEbenezer.net
5381
Age (days ago)
5381
Last active (days ago)
0 comments
1 participants
participants (1)
-
Brian Wood