
"Christophe Prud'homme" <prudhomm@mit.edu> wrote in message news:200510202250.43836.prudhomm@mit.edu...
[snip]
| It has a BOOST_VERSION_NUMBER macro like your BOOST_MAKE_VERSION macro. | That type of macro can already be used with the BOOST_WORKAROUND | utility. For example... | > In order to test the current version of boost: | > #if BOOST_IS_VERSION(1,33,0) | > ... write the code according to the API >= 1.33.0 | > #else | > ... write the code according to the API < 1.33.0 | > #endif | | #if BOOST_WORKAROUND( BOOST_VERSION, >= BOOST_VERSION_NUMBER(1,33,0) ) it is a bit wordy to just check for a version number, I think I find BOOST_IS_VERSION above more concise
IMHO, BOOST_IS_VERSION suggests that the version is _exactly_ 1.33.0. // Johan