serialization_template_version.hpp
Go to the documentation of this file.
1 
13 #ifndef MLPACK_CORE_DATA_SERIALIZATION_TEMPLATE_VERSION_HPP
14 #define MLPACK_CORE_DATA_SERIALIZATION_TEMPLATE_VERSION_HPP
15 
23 #define BOOST_TEMPLATE_CLASS_VERSION(SIGNATURE, T, N) \
24 namespace boost { \
25 namespace serialization { \
26 SIGNATURE \
27 struct version<T> \
28 { \
29  typedef mpl::int_<N> type; \
30  typedef mpl::integral_c_tag tag; \
31  BOOST_STATIC_CONSTANT(int, value = version::type::value); \
32  BOOST_MPL_ASSERT((boost::mpl::less<boost::mpl::int_<N>, \
33  boost::mpl::int_<256>>)); \
34 }; \
35 } /* namespace serialization */ \
36 } /* namespace boost */
37 
38 #endif