File indexing completed on 2024-11-15 09:30:59
0001 #ifndef BOOST_SERIALIZATION_ARRAY_HPP
0002 #define BOOST_SERIALIZATION_ARRAY_HPP
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include <boost/config.hpp> // msvc 6.0 needs this for warning suppression
0016
0017 #if defined(BOOST_NO_STDC_NAMESPACE)
0018
0019 #include <iostream>
0020 #include <cstddef> // std::size_t
0021 namespace std{
0022 using ::size_t;
0023 }
0024 #endif
0025
0026 #include <boost/serialization/array_wrapper.hpp>
0027
0028 #ifndef BOOST_NO_CXX11_HDR_ARRAY
0029
0030 #include <array>
0031 #include <boost/serialization/nvp.hpp>
0032
0033 namespace boost { namespace serialization {
0034
0035 template <class Archive, class T, std::size_t N>
0036 void serialize(Archive& ar, std::array<T,N>& a, const unsigned int )
0037 {
0038 ar & boost::serialization::make_nvp(
0039 "elems",
0040 *static_cast<T (*)[N]>(static_cast<void *>(a.data()))
0041 );
0042
0043 }
0044 } }
0045
0046 #endif
0047
0048 #endif