Ticket #2371: boost_archive.patch

File boost_archive.patch, 2.4 KB (added by Nicola Musatti, 14 years ago)
  • basic_binary_iprimitive.hpp

     
    122122    // we provide an optimized load for all fundamental types
    123123    // typedef serialization::is_bitwise_serializable<mpl::_1>
    124124    // use_array_optimization;
     125#if defined(BOOST_NO_DEPENDENT_NESTED_DERIVATIONS)
    125126    struct use_array_optimization {
    126         template <class T>
    127         struct apply : public serialization::is_bitwise_serializable<T> {};
     127      template <class T>
     128      struct apply
     129      {
     130        typedef typename boost::serialization::is_bitwise_serializable<T>::type type;
     131      };
    128132    };
     133#else
     134    struct use_array_optimization {
     135      template <class T>
     136      struct apply : public boost::serialization::is_bitwise_serializable<T> {};
     137    };
     138#endif
    129139
    130140    // the optimized load_array dispatches to load_binary
    131141    template <class ValueType>
  • basic_binary_oprimitive.hpp

     
    118118    // typedef serialization::is_bitwise_serializable<mpl::_1>
    119119    //  use_array_optimization;
    120120    // workaround without using mpl lambdas
     121#if defined(BOOST_NO_DEPENDENT_NESTED_DERIVATIONS)
    121122    struct use_array_optimization {
    122123      template <class T>
     124      struct apply
     125      {
     126        typedef typename boost::serialization::is_bitwise_serializable<T>::type type;
     127      };
     128    };
     129#else
     130    struct use_array_optimization {
     131      template <class T>
    123132      struct apply : public boost::serialization::is_bitwise_serializable<T> {};
    124133    };
    125    
     134#endif
    126135
    127136    // the optimized save_array dispatches to save_binary
    128137    template <class ValueType>
  • detail/abi_suffix.hpp

     
    88
    99//  See http://www.boost.org for updates, documentation, and revision history.
    1010
    11 #if defined( __BORLANDC__ )
    12 #pragma nopushoptwarn
    13 #endif
    14 
    1511#ifdef BOOST_MSVC
    1612#pragma warning(pop)
    1713#endif
    1814#include <boost/config/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
    1915
     16#if defined( __BORLANDC__ )
     17#pragma nopushoptwarn
     18#endif
     19