diff --git a/include/boost/archive/array/iarchive.hpp b/include/boost/archive/array/iarchive.hpp index 49078d02..d683fa26 100644 --- a/include/boost/archive/array/iarchive.hpp +++ b/include/boost/archive/array/iarchive.hpp @@ -8,17 +8,16 @@ #include -#include #include -#include #include #include +#include #include #include #include #include #include - +//#include namespace boost { namespace archive { namespace array { @@ -51,8 +50,8 @@ public: {} - // save_override for std::vector and serialization::array dispatches to - // save_optimized with an additional argument. + // load_override for std::vector and serialization::array dispatches to + // load_optimized with an additional argument. // // If that argument is of type mpl::true_, an optimized serialization is provided // If it is false, we just forward to the default serialization in the base class @@ -65,9 +64,9 @@ public: } // the optimized implementation for vector uses serialization::array - template + template void load_optimized( - std::vector &t, unsigned int version, mpl::true_) + std::vector &t, unsigned int version, mpl::true_) { t.clear(); // retrieve number of elements @@ -86,7 +85,6 @@ public: this->This()->load_array(t,version); } - // to load a vector: // if the value type is trivially constructable or an optimized array save exists, // then we can use the optimized version @@ -103,7 +101,6 @@ public: load_optimized(x,version, use_optimized() ); } - // dispatch loading of arrays to the optimized version where supported template void load_override(serialization::array const& x, unsigned int version) @@ -123,10 +120,7 @@ public: } }; - } } } // end namespace boost::archive::array - - #endif // BOOST_ARCHIVE_ARRAY_OARCHIVE_HPP diff --git a/include/boost/archive/array/oarchive.hpp b/include/boost/archive/array/oarchive.hpp index 00421c00..a21b9a55 100644 --- a/include/boost/archive/array/oarchive.hpp +++ b/include/boost/archive/array/oarchive.hpp @@ -13,11 +13,11 @@ #include #include #include -#include #include #include #include #include +#include namespace boost { namespace archive { namespace array { @@ -63,7 +63,6 @@ public: Base::save_override(t, version); } - // the optimized implementation for vector uses serialization::array template void save_optimized( @@ -83,7 +82,6 @@ public: this->This()->save_array(t,version); } - // to save a vector: // if the value type is trivially constructable or an optimized array save exists, // then we can use the optimized version @@ -100,8 +98,6 @@ public: >::type use_optimized; save_optimized(x,version,use_optimized() ); } - - // dispatch saving of arrays to the optimized version where supported template @@ -125,6 +121,4 @@ public: } } } // end namespace boost::archive::array - #endif // BOOST_ARCHIVE_ARRAY_OARCHIVE_HPP -