Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(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__);
}

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict