12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #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
|