|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68401 - branches/release/boost/archive
From: ramey_at_[hidden]
Date: 2011-01-23 15:28:06
Author: ramey
Date: 2011-01-23 15:28:05 EST (Sun, 23 Jan 2011)
New Revision: 68401
URL: http://svn.boost.org/trac/boost/changeset/68401
Log:
backward compatibility fix
Properties modified:
branches/release/boost/archive/basic_binary_iarchive.hpp (contents, props changed)
Text files modified:
branches/release/boost/archive/basic_binary_iarchive.hpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
Modified: branches/release/boost/archive/basic_binary_iarchive.hpp
==============================================================================
--- branches/release/boost/archive/basic_binary_iarchive.hpp (original)
+++ branches/release/boost/archive/basic_binary_iarchive.hpp 2011-01-23 15:28:05 EST (Sun, 23 Jan 2011)
@@ -156,6 +156,13 @@
* this->This() >> x;
t = boost::archive::version_type(x);
}
+ else
+ if(boost::archive::library_version_type(2) < lvt){
+ // upto 255 versions
+ unsigned char x=0;
+ * this->This() >> x;
+ t = version_type(x);
+ }
else{
unsigned int x=0;
* this->This() >> x;
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