Skip to content

Instantly share code, notes, and snippets.

@ducin
Last active December 31, 2015 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ducin/7947007 to your computer and use it in GitHub Desktop.
Save ducin/7947007 to your computer and use it in GitHub Desktop.
boost version check
#include <boost/version.hpp>
#include <iostream>
#include <iomanip>
int main()
{
std::cout << "Using Boost "
<< BOOST_VERSION / 100000 << "." // major version
<< BOOST_VERSION / 100 % 1000 << "." // minor version
<< BOOST_VERSION % 100 // patch level
<< std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment