blob: 9e3e22080f4b9d11cdc0990f6bd7e21ba0b4f0f8 [file] [log] [blame]
Brian Silverman88678712018-08-04 23:56:48 -07001#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 <iostream>
10
11#include <boost/config.hpp> // msvc 6.0 needs this for warning suppression
12
13#if defined(BOOST_NO_STDC_NAMESPACE)
14namespace std{
15 using ::size_t;
16} // namespace std
17#endif
18
19#include <boost/serialization/nvp.hpp>
20#include <boost/array.hpp>
21
22namespace boost { namespace serialization {
23// implement serialization for boost::array
24template <class Archive, class T, std::size_t N>
25void serialize(Archive& ar, boost::array<T,N>& a, const unsigned int /* version */)
26{
27 ar & boost::serialization::make_nvp("elems", a.elems);
28}
29
30} } // end namespace boost::serialization
31
32
33#endif //BOOST_SERIALIZATION_BOOST_ARRAY_HPP