|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64131 - trunk/boost/archive/detail
From: ramey_at_[hidden]
Date: 2010-07-18 11:55:45
Author: ramey
Date: 2010-07-18 11:55:45 EDT (Sun, 18 Jul 2010)
New Revision: 64131
URL: http://svn.boost.org/trac/boost/changeset/64131
Log:
suppress check for strictly increasing version number
Text files modified:
trunk/boost/archive/detail/iserializer.hpp | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
Modified: trunk/boost/archive/detail/iserializer.hpp
==============================================================================
--- trunk/boost/archive/detail/iserializer.hpp (original)
+++ trunk/boost/archive/detail/iserializer.hpp 2010-07-18 11:55:45 EDT (Sun, 18 Jul 2010)
@@ -168,6 +168,12 @@
void *x,
const unsigned int file_version
) const {
+ // note: we now comment this out. Before we permited archive
+ // version # to be very large. Now we don't. To permit
+ // readers of these old archives, we have to suppress this
+ // code. Perhaps in the future we might re-enable it but
+ // permit its suppression with a runtime switch.
+ #if 0
// trap case where the program cannot handle the current version
if(file_version > static_cast<const unsigned int>(version()))
boost::serialization::throw_exception(
@@ -176,7 +182,7 @@
get_debug_info()
)
);
-
+ #endif
// make sure call is routed through the higest interface that might
// be specialized by the user.
boost::serialization::serialize_adl(
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