Boost logo

Boost-Commit :

From: troyer_at_[hidden]
Date: 2008-07-02 15:16:19


Author: troyer
Date: 2008-07-02 15:16:18 EDT (Wed, 02 Jul 2008)
New Revision: 46998
URL: http://svn.boost.org/trac/boost/changeset/46998

Log:
Added more backwards compatibility files
Added:
   trunk/boost/serialization/vector_135.hpp (contents, props changed)
Text files modified:
   trunk/boost/serialization/vector.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/serialization/vector.hpp
==============================================================================
--- trunk/boost/serialization/vector.hpp (original)
+++ trunk/boost/serialization/vector.hpp 2008-07-02 15:16:18 EDT (Wed, 02 Jul 2008)
@@ -29,9 +29,9 @@
 #include <boost/serialization/detail/get_data.hpp>
 #include <boost/mpl/bool.hpp>
 
-// default is being compatible with version 1.35 files, not 1.34.1 files
+// default is being compatible with version 1.34.1 files, not 1.35 files
 #ifndef BOOST_SERIALIZATION_VECTOR_VERSION
-#define BOOST_SERIALIZATION_VECTOR_VERSION 4
+#define BOOST_SERIALIZATION_VECTOR_VERSION 3
 #endif
 
 

Added: trunk/boost/serialization/vector_135.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/serialization/vector_135.hpp 2008-07-02 15:16:18 EDT (Wed, 02 Jul 2008)
@@ -0,0 +1,20 @@
+#ifndef BOOST_SERIALIZATION_VECTOR_134_HPP
+#define BOOST_SERIALIZATION_VECTOR_134_HPP
+
+/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
+// vector_134.hpp: backwards compatibility with 1.34.1 files
+
+// (C) Copyright 2008 Matthias Troyer
+
+
+#ifdef BOOST_SERIALIZATION_VECTOR_VERSION
+#if BOOST_SERIALIZATION_VECTOR_VERSION != 4
+#error Boost.Serialization cannot be compatible with both 1.34.1. and 1.35 files. Please include boost/serialization/vector_134.hpp before vector.hpp to be compatible with 1.34.1 files
+#endif
+#else
+#define BOOST_SERIALIZATION_VECTOR_VERSION 4
+#endif
+
+#include <boost/serialization/vector.hpp>
+
+#endif // BOOST_SERIALIZATION_VECTOR_134_HPP


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