
27 Aug
2010
27 Aug
'10
2:39 p.m.
Stefan Strasser wrote:
-> [boost-users]
Zitat von Jeff Flinn <TriumphSprint2000@hotmail.com>:
Is it expected that the calls to register_type need to be identical on both the save and load side of a serialization exchange?
yes it is. register_type writes class info to your archive, which has to be read in the same order.
If the archive contains the registration info, are the registration calls on the load side redundant/not needed?
oa.register_type(static_cast<A*>(0));
oa.register_type<A>();
Ahh, thanks for the cleaner syntax. Thanks, Jeff