How to determine the Boost version on a system?
Include #include <boost/version.hpp>
std::cout << "Using Boost "
<< BOOST_VERSION / 100000 << "." // major version
<< BOOST_VERSION / 100 % 1000 << "." // minor version
<< BOOST_VERSION % 100 // patch level
<< std::endl;
Possible output: Using Boost 1.75.0
Tested with Boost 1.51.0 to 1.63, 1.71.0 and 1.76.0 to 1.80.0
Boost Informational Macros. You need: BOOST_VERSION