Files
externals/linux/include/ActivBoost/serialization/boost_array.hpp
T
2023-12-15 13:15:08 -05:00

32 lines
1006 B
C++

#ifndef ACTIV_BOOST_SERIALIZATION_ACTIV_BOOST_ARRAY_HPP
#define ACTIV_BOOST_SERIALIZATION_ACTIV_BOOST_ARRAY_HPP
// (C) Copyright 2005 Matthias Troyer and Dave Abrahams
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <ActivBoost/config.hpp> // msvc 6.0 needs this for warning suppression
#if defined(ACTIV_BOOST_NO_STDC_NAMESPACE)
namespace std{
using ::size_t;
} // namespace std
#endif
#include <ActivBoost/serialization/nvp.hpp>
#include <ActivBoost/array.hpp>
namespace Boost { namespace serialization {
// implement serialization for Boost::array
template <class Archive, class T, std::size_t N>
void serialize(Archive& ar, Boost::array<T,N>& a, const unsigned int /* version */)
{
ar & Boost::serialization::make_nvp("elems", a.elems);
}
} } // end namespace Boost::serialization
#endif //ACTIV_BOOST_SERIALIZATION_ACTIV_BOOST_ARRAY_HPP