Chaste  Release::3.4
ChasteSerializationVersion.hpp File Reference
#include <boost/version.hpp>
#include <boost/serialization/version.hpp>
+ Include dependency graph for ChasteSerializationVersion.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COVERAGE_IGNORE
 gcov doesn't like this file...
 
#define CHASTE_VERSION_CONTENT(N)   BOOST_STATIC_CONSTANT(unsigned, value = N)
 

Detailed Description

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> >
{
};
} // namespace serialization
} // namespace boost
See Also
http://www.boost.org/doc/libs/1_44_0/boost/serialization/version.hpp

Definition in file ChasteSerializationVersion.hpp.

Macro Definition Documentation

#define CHASTE_VERSION_CONTENT (   N)    BOOST_STATIC_CONSTANT(unsigned, value = N)

Content for the Boost serialization version template on Boost 1.43 and below.

Parameters
Nthe version number

Definition at line 90 of file ChasteSerializationVersion.hpp.