[Boost-bugs] [Boost C++ Libraries] #5579: 1_40_0 serialization break.

Subject: [Boost-bugs] [Boost C++ Libraries] #5579: 1_40_0 serialization break.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-05-29 16:42:42


#5579: 1_40_0 serialization break.
-------------------------------------------------------+--------------------
 Reporter: Phil Hartmann <phil.hartmann82@…> | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.46.1 | Severity: Showstopper
 Keywords: serialization object cross dll |
-------------------------------------------------------+--------------------
 If you compare 1_39 and 1_40 here, you can see one 1_39 compares the
 addresses of functions to get type information. Which in 1_40 was 'fixed'
 so that types across DLL's would be matched.

 However this of course breaks archive compatibility with 1_39 as the two
 dll's will have serialized out the CO info twice, and now in 1_40 and
 beyond it'll only try to read it once.. Leaving the file corrupted.

 http://www.boost.org/doc/libs/1_39_0/boost/archive/detail/basic_serializer.hpp
 http://www.boost.org/doc/libs/1_40_0/boost/archive/detail/basic_serializer.hpp

 I'm not even sure how this can be fixed short of storing a flag to
 determine how cobject's compare thats based on archive version where the
 comparison starts...

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5579>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC