Is there a quick way to determine the version of the Boost C++ libraries on a system?
If you want to figure it out manually (rather than in-code), the go to the include directory, and open up version.hpp. `BOOST_VERSION` takes a bit of deciphering, but `BOOST_LIB_VERSION` is pretty clear. The value of mine is currently `"1_42"`
T.E.D.
2010-09-14 12:44:47
+2
A:
#include <boost/version.hpp>
#include <iostream>
#include <iomanip>
int main()
{
std::cout << "Boost version: " << std::hex
<< ((BOOST_VERSION >> 20) & 0xF)
<< "."
<< ((BOOST_VERSION >> 8) & 0xFFF)
<< "."
<< (BOOST_VERSION & 0xFF)
<< endl;
return 0;
}
hkaiser
2010-09-14 12:20:51