|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64282 - in trunk/boost: archive serialization
From: ramey_at_[hidden]
Date: 2010-07-23 02:05:32
Author: ramey
Date: 2010-07-23 02:05:30 EDT (Fri, 23 Jul 2010)
New Revision: 64282
URL: http://svn.boost.org/trac/boost/changeset/64282
Log:
change version_type constructor to public
Text files modified:
trunk/boost/archive/basic_archive.hpp | 4 +++-
trunk/boost/serialization/item_version_type.hpp | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
Modified: trunk/boost/archive/basic_archive.hpp
==============================================================================
--- trunk/boost/archive/basic_archive.hpp (original)
+++ trunk/boost/archive/basic_archive.hpp 2010-07-23 02:05:30 EDT (Fri, 23 Jul 2010)
@@ -76,8 +76,9 @@
private:
typedef uint_least32_t base_type;
base_type t;
- version_type(): t(0) {};
public:
+ // should be private - but MPI fails if it's not!!!
+ version_type(): t(0) {};
explicit version_type(const unsigned int & t_) : t(t_){
assert(t_ <= boost::integer_traits<base_type>::const_max);
}
@@ -109,6 +110,7 @@
typedef int_least16_t base_type;
base_type t;
public:
+ // should be private - but then can't use BOOST_STRONG_TYPE below
class_id_type() : t(0) {};
explicit class_id_type(const int t_) : t(t_){
assert(t_ <= boost::integer_traits<base_type>::const_max);
Modified: trunk/boost/serialization/item_version_type.hpp
==============================================================================
--- trunk/boost/serialization/item_version_type.hpp (original)
+++ trunk/boost/serialization/item_version_type.hpp 2010-07-23 02:05:30 EDT (Fri, 23 Jul 2010)
@@ -23,8 +23,9 @@
private:
typedef unsigned int base_type;
base_type t;
- item_version_type(): t(0) {};
public:
+ // should be private - but MPI fails if it's not!!!
+ item_version_type(): t(0) {};
explicit item_version_type(const unsigned int t_) : t(t_){
assert(t_ <= boost::integer_traits<base_type>::const_max);
}
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