mlpack  master
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<mlpack::data::SecondShim<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(( \
33  boost::mpl::less< \
34  boost::mpl::int_<N>, \
35  boost::mpl::int_<256> \
36  > \
37  )); \
38 }; \
39 } \
40 }
41 
42 #endif