diff --git a/include/GooseFEM/version.hpp b/include/GooseFEM/version.hpp index f130ac5..42b50f8 100644 --- a/include/GooseFEM/version.hpp +++ b/include/GooseFEM/version.hpp @@ -1,44 +1,48 @@ /** \file version.hpp \copyright Copyright 2017. Tom de Geus. All rights reserved. \license This project is released under the GNU Public License (GPLv3). */ #ifndef GOOSEFEM_VERSION_HPP #define GOOSEFEM_VERSION_HPP #include "version.h" namespace GooseFEM { inline std::string version() { - return std::string(GOOSEFEM_VERSION); + std::stringstream ss; + ss << GOOSEFEM_VERSION; + std::string ret; + ss >> ret; + return ret; } inline std::vector version_dependencies() { std::vector ret; ret.push_back("goosefem=" + version()); ret.push_back("xtensor=" + std::to_string(XTENSOR_VERSION_MAJOR) + "." + std::to_string(XTENSOR_VERSION_MINOR) + "." + std::to_string(XTENSOR_VERSION_PATCH)); #if defined(GOOSEFEM_EIGEN) || defined(EIGEN_WORLD_VERSION) ret.push_back("eigen=" + std::to_string(EIGEN_WORLD_VERSION) + "." + std::to_string(EIGEN_MAJOR_VERSION) + "." + std::to_string(EIGEN_MINOR_VERSION)); #endif return ret; } } // namespace GooseFEM #endif