diff options
Diffstat (limited to 'boost/numeric/odeint/version.hpp')
-rw-r--r-- | boost/numeric/odeint/version.hpp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/boost/numeric/odeint/version.hpp b/boost/numeric/odeint/version.hpp new file mode 100644 index 0000000000..379c906599 --- /dev/null +++ b/boost/numeric/odeint/version.hpp @@ -0,0 +1,55 @@ +/* + [auto_generated] + boost/numeric/odeint/version.hpp + + [begin_description] + Defines the current version of odeint. + [end_description] + + Copyright 2011-2012 Karsten Ahnert + Copyright 2011-2012 Mario Mulansky + + Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or + copy at http://www.boost.org/LICENSE_1_0.txt) + */ + +#ifndef BOOST_NUMERIC_ODEINT_VERSION_HPP_INCLUDED +#define BOOST_NUMERIC_ODEINT_VERSION_HPP_INCLUDED + +#include <string> +#include <sstream> + + +#define ODEINT_MAJOR_VERSION 2 +#define ODEINT_MINOR_VERSION 2 +#define ODEINT_PATCH_LEVEL 0 +#define ODEINT_VERSION ( ODEINT_MAJOR_VERSION * 100000 + ODEINT_MINOR_VERSION * 100 + ODEINT_PATCH_LEVEL ) + + +namespace boost { +namespace numeric { +namespace odeint { + +namespace version { + +const int major = ODEINT_MAJOR_VERSION ; +const int minor = ODEINT_MINOR_VERSION ; +const int patch_level = ODEINT_PATCH_LEVEL ; + +} + +inline std::string get_version_string( void ) +{ + std::ostringstream str; + str << "v" << version::major << "." << version::minor; + if( version::patch_level != 0 ) str << "_" << version::patch_level; + return str.str(); +} + + +} +} +} + +#endif // BOOST_NUMERIC_ODEINT_VERSION_HPP_INCLUDED |