(C++) GetBoostVersion
February 24, 2017 · View on GitHub
(C++) GetBoostVersion
GetBoostVersion is a version code snippets to obtain the version of the current Boost library in use.
#include <algorithm> #include <string> #include <boost/version.hpp> ///GetBoostVersion returns the version of the current Boost library. ///From http://www.richelbilderbeek.nl/CppGetBoostVersion.htm const std::string GetBoostVersion() { std::string s = BOOST_LIB_VERSION; std::replace(s.begin(),s.end(),'_','.'); return s; }