serialization_template_version.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BOOST_TEMPLATE_CLASS_VERSION(SIGNATURE, T, N)
 Use this like BOOST_CLASS_VERSION(), but for templated classes. More...

 

Detailed Description

Author
Ryan Curtin

A better version of the BOOST_CLASS_VERSION() macro that supports templated classes.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.

Definition in file serialization_template_version.hpp.

Macro Definition Documentation

◆ BOOST_TEMPLATE_CLASS_VERSION

#define BOOST_TEMPLATE_CLASS_VERSION (   SIGNATURE,
  T,
 
)
Value:
namespace boost { \
namespace serialization { \
SIGNATURE \
struct version<T> \
{ \
typedef mpl::int_<N> type; \
typedef mpl::integral_c_tag tag; \
BOOST_STATIC_CONSTANT(int, value = version::type::value); \
BOOST_MPL_ASSERT((boost::mpl::less<boost::mpl::int_<N>, \
boost::mpl::int_<256>>)); \
}; \
} /* namespace serialization */ \
} /* namespace boost */
Set the serialization version of the adaboost class.
Definition: adaboost.hpp:198

Use this like BOOST_CLASS_VERSION(), but for templated classes.

The first argument is the signature for the template. Here is an example for math::Range<eT>:

BOOST_TEMPLATE_CLASS_VERSION(template<typename eT>, math::Range<eT>, 1);

Definition at line 23 of file serialization_template_version.hpp.