1#ifndef BOOST_SERIALIZATION_BOOST_ARRAY_HPP
2#define BOOST_SERIALIZATION_BOOST_ARRAY_HPP
3
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)
8
9#include <boost/config.hpp> // msvc 6.0 needs this for warning suppression
10
11#if defined(BOOST_NO_STDC_NAMESPACE)
12namespace std{
13 using ::size_t;
14} // namespace std
15#endif
16
17#include <boost/serialization/nvp.hpp>
18#include <boost/array.hpp>
19
20namespace boost { namespace serialization {
21// implement serialization for boost::array
22template <class Archive, class T, std::size_t N>
23void serialize(Archive& ar, boost::array<T,N>& a, const unsigned int /* version */)
24{
25 ar & boost::serialization::make_nvp("elems", a.elems);
26}
27
28} } // end namespace boost::serialization
29
30
31#endif //BOOST_SERIALIZATION_BOOST_ARRAY_HPP
32

source code of boost/libs/serialization/include/boost/serialization/boost_array.hpp