Boost logo

Boost-Commit :

From: troyer_at_[hidden]
Date: 2008-06-30 15:09:12


Author: troyer
Date: 2008-06-30 15:09:12 EDT (Mon, 30 Jun 2008)
New Revision: 46928
URL: http://svn.boost.org/trac/boost/changeset/46928

Log:
Attempting workaround for Borland bug
Text files modified:
   trunk/boost/serialization/array.hpp | 14 +++++++++++++-
   1 files changed, 13 insertions(+), 1 deletions(-)

Modified: trunk/boost/serialization/array.hpp
==============================================================================
--- trunk/boost/serialization/array.hpp (original)
+++ trunk/boost/serialization/array.hpp 2008-06-30 15:09:12 EDT (Mon, 30 Jun 2008)
@@ -29,8 +29,17 @@
 
 // traits to specify whether to use an optimized array serialization
 
+#ifdef __BORLANDC__
+// workaround for Borland compiler
+template <class Archive>
+struct use_array_optimization {
+ template <class T> struct apply : boost::mpl::false_ {};
+};
+
+#else
 template <class Archive>
 struct use_array_optimization : boost::mpl::always<boost::mpl::false_> {};
+#endif
 
 template<class T>
 class array
@@ -123,7 +132,10 @@
 
 } } // end namespace boost::serialization
 
-
+#ifdef __BORLANDC__
+// ignore optimizations for Borland
+#define BOOST_SERIALIZATION_USE_ARRAY_OPTIMIZATION(Archive)
+#else
 #define BOOST_SERIALIZATION_USE_ARRAY_OPTIMIZATION(Archive) \
 namespace boost { namespace serialization { \
 template <> struct use_array_optimization<Archive> { \


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