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.

Defines

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

Definition in file ChasteSerializationVersion.hpp.


Define Documentation

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

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

Parameters:
N the version number

Definition at line 83 of file ChasteSerializationVersion.hpp.

Generated on Thu Dec 22 13:00:18 2011 for Chaste by  doxygen 1.6.3