Boost logo

Boost :

Subject: Re: [boost] [serialization] register_type order dependent?
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2010-08-27 10:39:50


Stefan Strasser wrote:
> -> [boost-users]
>
> Zitat von Jeff Flinn <TriumphSprint2000_at_[hidden]>:
>
>> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk