Chaste Release::3.1
|
#include <boost/version.hpp>
#include <boost/serialization/version.hpp>
Go to the source code of this file.
Defines | |
#define | COVERAGE_IGNORE |
gcov doesn't like this file... | |
#define | CHASTE_VERSION_CONTENT(N) BOOST_STATIC_CONSTANT(unsigned, value = N) |
Provide a wrapper around Boost's serialization version to cope with changes in library interface. Include this header in place of <boost/serialization/version.hpp>
For simple classes T, a version number N can be specified just by using the Boost macro BOOST_CLASS_VERSION(T, N)
However, templated classes need to expand the definition of this macro, the contents of which changed in Boost 1.44. Use the CHASTE_VERSION_CONTENT macro within your template.
For example:
namespace boost { namespace serialization { template <unsigned ELEMENT_DIM, unsigned SPACE_DIM, unsigned PROBLEM_DIM> struct version<AbstractCardiacProblem<ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM> > { CHASTE_VERSION_CONTENT(1); }; } // namespace serialization } // namespace boost
Definition in file ChasteSerializationVersion.hpp.
#define CHASTE_VERSION_CONTENT | ( | N | ) | BOOST_STATIC_CONSTANT(unsigned, value = N) |
Content for the Boost serialization version template on Boost 1.43 and below.
N | the version number |
Definition at line 90 of file ChasteSerializationVersion.hpp.