Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64909 - trunk/boost/serialization
From: ramey_at_[hidden]
Date: 2010-08-19 01:35:30


Author: ramey
Date: 2010-08-19 01:35:29 EDT (Thu, 19 Aug 2010)
New Revision: 64909
URL: http://svn.boost.org/trac/boost/changeset/64909

Log:
fixed inclusion of basic_archive which was causing superfluous dependency
Text files modified:
   trunk/boost/serialization/serialization.hpp | 13 +++----------
   trunk/boost/serialization/split_free.hpp | 6 ++----
   2 files changed, 5 insertions(+), 14 deletions(-)

Modified: trunk/boost/serialization/serialization.hpp
==============================================================================
--- trunk/boost/serialization/serialization.hpp (original)
+++ trunk/boost/serialization/serialization.hpp 2010-08-19 01:35:29 EDT (Thu, 19 Aug 2010)
@@ -11,8 +11,6 @@
 #endif
 
 #include <boost/config.hpp>
-#include <boost/archive/basic_archive.hpp>
-#include <boost/serialization/strong_typedef.hpp>
 #include <boost/serialization/pfto.hpp>
 
 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
@@ -60,8 +58,6 @@
 namespace boost {
 namespace serialization {
 
-BOOST_STRONG_TYPEDEF(unsigned int, version_type)
-
 // default implementation - call the member function "serialize"
 template<class Archive, class T>
 inline void serialize(
@@ -125,8 +121,7 @@
     // PFTO, suppress it here. As far as we know, there are no compilers
     // which fail to support PFTO while supporting two-phase lookup.
     #if ! defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
- const version_type v(file_version);
- serialize(ar, t, v);
+ serialize(ar, t, file_version);
     #else
         serialize(ar, t, file_version);
     #endif
@@ -140,8 +135,7 @@
 ){
     // see above
     #if ! defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
- const version_type v(file_version);
- save_construct_data(ar, t, v);
+ save_construct_data(ar, t, file_version);
     #else
         save_construct_data(ar, t, file_version);
     #endif
@@ -155,8 +149,7 @@
 ){
     // see above comment
     #if ! defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
- const version_type v(file_version);
- load_construct_data(ar, t, v);
+ load_construct_data(ar, t, file_version);
     #else
         load_construct_data(ar, t, file_version);
     #endif

Modified: trunk/boost/serialization/split_free.hpp
==============================================================================
--- trunk/boost/serialization/split_free.hpp (original)
+++ trunk/boost/serialization/split_free.hpp 2010-08-19 01:35:29 EDT (Thu, 19 Aug 2010)
@@ -41,8 +41,7 @@
     ){
         // use function overload (version_type) to workaround
         // two-phase lookup issue
- const version_type v(file_version);
- save(ar, t, v);
+ save(ar, t, file_version);
     }
 };
 template<class Archive, class T>
@@ -54,8 +53,7 @@
     ){
         // use function overload (version_type) to workaround
         // two-phase lookup issue
- const version_type v(file_version);
- load(ar, t, v);
+ load(ar, t, file_version);
     }
 };
 //} // namespace detail


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