|
Boost Users : |
Subject: Re: [Boost-users] [repost][serialization] version handling in{save|load}_construct_data
From: Robert Ramey (ramey_at_[hidden])
Date: 2010-01-10 17:26:42
JOAQUIN M. LOPEZ MUÑOZ wrote:
> ________________________________________
> De: boost-users-bounces_at_[hidden]
> [boost-users-bounces_at_[hidden]] En nombre de Robert Ramey
> [ramey_at_[hidden]]
> Enviado el: domingo, 10 de enero de 2010 20:22
> Para: boost-users_at_[hidden]
> Asunto: Re: [Boost-users] [repost][serialization] version handling
> in{save|load}_construct_data
>>
>> I investigated a little bit more. Seems that save/load_construct
>> data needs the version # and there is no place else to get it.
>
> Why can't you directly use serialization::version<T>::value?
You can't do this on load because you want the the version under
which it is saved - NOT the current one
>This is
> for instance what you're doing at lines 51 and following of
> boost/serialization/hash_collections_save_imp.hpp.
For save - this is correct.
For load it isn't
Robert Ramey
>
> Joaquín M López Muñoz
> Telefónica, Investigación y Desarrollo
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net