|
Boost Users : |
Subject: Re: [Boost-users] [serialization] Reading back old archives
From: David Raulo (david.raulo_at_[hidden])
Date: 2010-07-13 08:03:31
Hello,
Le 12 juil. 2010 à 22:43, Robert Ramey a écrit :
> David Raulo wrote:
>>
>> #8 0x001df891 in
>> boost::serialization::throw_exception<boost::archive::archive_exception>
>> (e=@0xbfffe2d0) at throw_exception.hpp:36
>> #9 0x001a3cee in
>> boost::archive::detail::iserializer<my_xml_iarchive,
>> MyClass>::load_object_data (this=0xbea698, ar=@0xbffff284,
>> x=0x2a19770, file_version=36107) at iserializer.hpp:173
>>
>>
>> Here you can see that the original version 20090123 got truncated to
>> 36107 == 20090123 & 65535. This in itself might be a bug, I'm not
>> sure.
>
> I can't see this. But I do see how this assertion would be tripped. If
> you comment out this assertion does this make it work?
Then the execution proceeds without exceptions, my serialize() method is
called, but I verified that it receives 36107 as the version instead of
20090123.
David Raulo.
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