1 #ifndef BOOST_SERIALIZATION_ARRAY_HPP
2 #define BOOST_SERIALIZATION_ARRAY_HPP
4 // (C) Copyright 2005 Matthias Troyer and Dave Abrahams
5 // Use, modification and distribution is subject to the Boost Software
6 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
11 #include <boost/config.hpp> // msvc 6.0 needs this for warning suppression
13 #if defined(BOOST_NO_STDC_NAMESPACE)
19 #include <boost/serialization/nvp.hpp>
20 #include <boost/array.hpp>
22 namespace boost { namespace serialization {
23 // implement serialization for boost::array
24 template <class Archive, class T, std::size_t N>
25 void serialize(Archive& ar, boost::array<T,N>& a, const unsigned int /* version */)
27 ar & boost::serialization::make_nvp("elems", a.elems);
30 } } // end namespace boost::serialization
33 #endif //BOOST_SERIALIZATION_ARRAY_HPP