|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68160 - trunk/boost/archive
From: ramey_at_[hidden]
Date: 2011-01-14 17:22:50
Author: ramey
Date: 2011-01-14 17:22:49 EST (Fri, 14 Jan 2011)
New Revision: 68160
URL: http://svn.boost.org/trac/boost/changeset/68160
Log:
fix for binary archive version 1.44 & and 1.43 item_version compatibility
Text files modified:
trunk/boost/archive/basic_binary_iarchive.hpp | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
Modified: trunk/boost/archive/basic_binary_iarchive.hpp
==============================================================================
--- trunk/boost/archive/basic_binary_iarchive.hpp (original)
+++ trunk/boost/archive/basic_binary_iarchive.hpp 2011-01-14 17:22:49 EST (Fri, 14 Jan 2011)
@@ -146,6 +146,12 @@
}
else
if(boost::archive::library_version_type(6) < lvt){
+ uint_least8_t x=0;
+ * this->This() >> x;
+ t = boost::archive::version_type(x);
+ }
+ else
+ if(boost::archive::library_version_type(5) < lvt){
uint_least16_t x=0;
* this->This() >> x;
t = boost::archive::version_type(x);
@@ -159,7 +165,8 @@
void load_override(boost::serialization::item_version_type & t, int version){
library_version_type lvt = this->get_library_version();
- if(boost::archive::library_version_type(7) < lvt){
+// if(boost::archive::library_version_type(7) < lvt){
+ if(boost::archive::library_version_type(6) < lvt){
this->detail_common_iarchive::load_override(t, version);
}
else
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk