
JOAQUIN M. LOPEZ MUÑOZ wrote:
________________________________________ De: boost-users-bounces@lists.boost.org [boost-users-bounces@lists.boost.org] En nombre de Robert Ramey [ramey@rrsd.com] Enviado el: domingo, 10 de enero de 2010 20:22 Para: boost-users@lists.boost.org 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