Index: basic_binary_iprimitive.hpp =================================================================== --- basic_binary_iprimitive.hpp (revision 48982) +++ basic_binary_iprimitive.hpp (working copy) @@ -122,10 +122,20 @@ // we provide an optimized load for all fundamental types // typedef serialization::is_bitwise_serializable // use_array_optimization; +#if defined(BOOST_NO_DEPENDENT_NESTED_DERIVATIONS) struct use_array_optimization { - template - struct apply : public serialization::is_bitwise_serializable {}; + template + struct apply + { + typedef typename boost::serialization::is_bitwise_serializable::type type; + }; }; +#else + struct use_array_optimization { + template + struct apply : public boost::serialization::is_bitwise_serializable {}; + }; +#endif // the optimized load_array dispatches to load_binary template Index: basic_binary_oprimitive.hpp =================================================================== --- basic_binary_oprimitive.hpp (revision 48982) +++ basic_binary_oprimitive.hpp (working copy) @@ -118,11 +118,20 @@ // typedef serialization::is_bitwise_serializable // use_array_optimization; // workaround without using mpl lambdas +#if defined(BOOST_NO_DEPENDENT_NESTED_DERIVATIONS) struct use_array_optimization { template + struct apply + { + typedef typename boost::serialization::is_bitwise_serializable::type type; + }; + }; +#else + struct use_array_optimization { + template struct apply : public boost::serialization::is_bitwise_serializable {}; }; - +#endif // the optimized save_array dispatches to save_binary template Index: detail/abi_suffix.hpp =================================================================== --- detail/abi_suffix.hpp (revision 48982) +++ detail/abi_suffix.hpp (working copy) @@ -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 // pops abi_suffix.hpp pragmas +#if defined( __BORLANDC__ ) +#pragma nopushoptwarn +#endif +