|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86207 - trunk/boost/mpi
From: troyer_at_[hidden]
Date: 2013-10-08 15:05:04
Author: troyer
Date: 2013-10-08 15:05:04 EDT (Tue, 08 Oct 2013)
New Revision: 86207
URL: http://svn.boost.org/trac/boost/changeset/86207
Log:
Fixed #9208
Text files modified:
trunk/boost/mpi/packed_iarchive.hpp | 6 ++++++
trunk/boost/mpi/packed_oarchive.hpp | 6 +++++-
2 files changed, 11 insertions(+), 1 deletions(-)
Modified: trunk/boost/mpi/packed_iarchive.hpp
==============================================================================
--- trunk/boost/mpi/packed_iarchive.hpp Tue Oct 8 13:59:44 2013 (r86206)
+++ trunk/boost/mpi/packed_iarchive.hpp 2013-10-08 15:05:04 EDT (Tue, 08 Oct 2013) (r86207)
@@ -127,6 +127,12 @@
t = boost::archive::class_id_type(x);
}
+ void load_override(archive::version_type & t, int version){
+ int_least8_t x=0;
+ * this->This() >> x;
+ t = boost::archive::version_type(x);
+ }
+
void load_override(archive::class_id_reference_type & t, int version){
load_override(static_cast<archive::class_id_type &>(t), version);
}
Modified: trunk/boost/mpi/packed_oarchive.hpp
==============================================================================
--- trunk/boost/mpi/packed_oarchive.hpp Tue Oct 8 13:59:44 2013 (r86206)
+++ trunk/boost/mpi/packed_oarchive.hpp 2013-10-08 15:05:04 EDT (Tue, 08 Oct 2013) (r86207)
@@ -129,7 +129,11 @@
const boost::int_least16_t x = t;
* this->This() << x;
}
-
+
+ void save_override(archive::version_type & t, int version){
+ const boost::int_least8_t x = t;
+ * this->This() << x;
+ }
private:
/// An internal buffer to be used when the user does not supply his
/// own buffer.
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