summaryrefslogtreecommitdiff
path: root/boost/serialization/array.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/serialization/array.hpp')
-rw-r--r--boost/serialization/array.hpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/boost/serialization/array.hpp b/boost/serialization/array.hpp
index 35c640ce45..97ac0c2501 100644
--- a/boost/serialization/array.hpp
+++ b/boost/serialization/array.hpp
@@ -33,17 +33,8 @@ namespace boost { namespace serialization {
// 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 :
@@ -125,10 +116,7 @@ private:
template<class T>
inline
-#ifndef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
-const
-#endif
-array< T > make_array( T* t, std::size_t s){
+const array< T > make_array( T* t, std::size_t s){
return array< T >(t, s);
}
@@ -154,10 +142,6 @@ void serialize(Archive& ar, std::array<T,N>& a, const unsigned int /* version */
} } // 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> { \
@@ -166,6 +150,5 @@ template <> struct use_array_optimization<Archive> { \
, typename boost::remove_const<ValueType>::type \
>::type {}; \
}; }}
-#endif // __BORLANDC__
#endif //BOOST_SERIALIZATION_ARRAY_HPP