|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68388 - trunk/boost/archive
From: ramey_at_[hidden]
Date: 2011-01-23 11:28:14
Author: ramey
Date: 2011-01-23 11:28:10 EST (Sun, 23 Jan 2011)
New Revision: 68388
URL: http://svn.boost.org/trac/boost/changeset/68388
Log:
improve compatibility with older archive versions
Text files modified:
trunk/boost/archive/basic_binary_iarchive.hpp | 7 +++++++
1 files changed, 7 insertions(+), 0 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-23 11:28:10 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