Boost logo

Boost Users :

Subject: [Boost-users] [serialization] 1.34.1 -> 1.35 vector bug
From: Josh Kelley (joshkel_at_[hidden])
Date: 2009-07-08 17:30:55


I'm upgrading from C++Builder 2007 with Boost 1.34.1 to C++Builder 2009 with
Boost 1.35. (I realize that this is a few versions behind, but C++Builder
compatibility seems problematic enough that I'm going to try sticking with
1.35, which is what the vendor officially supports. Or would people here
recommend using a later version?) I'm running into problems loading XML
archives containing vectors that were created by Boost 1.34.1. This appears
to be the same problem that others have reported:

https://svn.boost.org/trac/boost/ticket/1774
https://svn.boost.org/trac/boost/ticket/2271
http://lists.boost.org/boost-users/2009/05/48292.php

If I understand those pages correctly, to work around this problem, I should
be able to copy the relevant changes from Boost 1.39.0's
boost/serialization/vector.hpp and boost/serialization/array.hpp, plus
change BOOST_SERIALIZATION_VECTOR_VERSION from 3 to 4, and my copy of 1.35
will work both with 1.34.1 and with 1.36 and above. Is this correct?

Thanks.

Josh Kelley



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