(C++) GetStlVersion

February 24, 2017 · View on GitHub

 

 

 

 

 

(C++) GetStlVersion

 

GetStlVersion is a version code snippets to obtain the version of the current STL library in use.

 


#include <string> #include <boost/lexical_cast.hpp> ///GetStlVersion returns the version number of the GCC STL currently installed. ///From http://www.richelbilderbeek.nl/CppGetStlVersion.htm const std::string GetStlVersion() {   return boost::lexical_cast<std::string>(__VERSION__); }