Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49097 - in branches/bcbboost/boost/archive: . detail
From: nicola.musatti_at_[hidden]
Date: 2008-10-01 17:33:41


Author: nmusatti
Date: 2008-10-01 17:33:41 EDT (Wed, 01 Oct 2008)
New Revision: 49097
URL: http://svn.boost.org/trac/boost/changeset/49097

Log:
CodeGear patch
Text files modified:
   branches/bcbboost/boost/archive/basic_binary_iprimitive.hpp | 14 ++++++++++++--
   branches/bcbboost/boost/archive/basic_binary_oprimitive.hpp | 11 ++++++++++-
   branches/bcbboost/boost/archive/detail/abi_suffix.hpp | 8 ++++----
   3 files changed, 26 insertions(+), 7 deletions(-)

Modified: branches/bcbboost/boost/archive/basic_binary_iprimitive.hpp
==============================================================================
--- branches/bcbboost/boost/archive/basic_binary_iprimitive.hpp (original)
+++ branches/bcbboost/boost/archive/basic_binary_iprimitive.hpp 2008-10-01 17:33:41 EDT (Wed, 01 Oct 2008)
@@ -122,10 +122,20 @@
     // we provide an optimized load for all fundamental types
     // typedef serialization::is_bitwise_serializable<mpl::_1>
     // use_array_optimization;
+#if defined(BOOST_NO_DEPENDENT_NESTED_DERIVATIONS)
     struct use_array_optimization {
- template <class T>
- struct apply : public serialization::is_bitwise_serializable<T> {};
+ template <class T>
+ struct apply
+ {
+ typedef typename boost::serialization::is_bitwise_serializable<T>::type type;
+ };
     };
+#else
+ struct use_array_optimization {
+ template <class T>
+ struct apply : public boost::serialization::is_bitwise_serializable<T> {};
+ };
+#endif
 
     // the optimized load_array dispatches to load_binary
     template <class ValueType>

Modified: branches/bcbboost/boost/archive/basic_binary_oprimitive.hpp
==============================================================================
--- branches/bcbboost/boost/archive/basic_binary_oprimitive.hpp (original)
+++ branches/bcbboost/boost/archive/basic_binary_oprimitive.hpp 2008-10-01 17:33:41 EDT (Wed, 01 Oct 2008)
@@ -118,11 +118,20 @@
     // typedef serialization::is_bitwise_serializable<mpl::_1>
     // use_array_optimization;
     // workaround without using mpl lambdas
+#if defined(BOOST_NO_DEPENDENT_NESTED_DERIVATIONS)
+ struct use_array_optimization {
+ template <class T>
+ struct apply
+ {
+ typedef typename boost::serialization::is_bitwise_serializable<T>::type type;
+ };
+ };
+#else
     struct use_array_optimization {
       template <class T>
       struct apply : public boost::serialization::is_bitwise_serializable<T> {};
     };
-
+#endif
 
     // the optimized save_array dispatches to save_binary
     template <class ValueType>

Modified: branches/bcbboost/boost/archive/detail/abi_suffix.hpp
==============================================================================
--- branches/bcbboost/boost/archive/detail/abi_suffix.hpp (original)
+++ branches/bcbboost/boost/archive/detail/abi_suffix.hpp 2008-10-01 17:33:41 EDT (Wed, 01 Oct 2008)
@@ -8,12 +8,12 @@
 
 // See http://www.boost.org for updates, documentation, and revision history.
 
-#if defined( __BORLANDC__ )
-#pragma nopushoptwarn
-#endif
-
 #ifdef BOOST_MSVC
 #pragma warning(pop)
 #endif
 #include <boost/config/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
 
+#if defined( __BORLANDC__ )
+#pragma nopushoptwarn
+#endif
+


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