]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/serialization/boost_array.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / serialization / boost_array.hpp
1 #ifndef BOOST_SERIALIZATION_ARRAY_HPP
2 #define BOOST_SERIALIZATION_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)
14 namespace std{
15 using ::size_t;
16 } // namespace std
17 #endif
18
19 #include <boost/serialization/nvp.hpp>
20 #include <boost/array.hpp>
21
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 */)
26 {
27 ar & boost::serialization::make_nvp("elems", a.elems);
28 }
29
30 } } // end namespace boost::serialization
31
32
33 #endif //BOOST_SERIALIZATION_ARRAY_HPP