From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2005-10-21 03:34:06
"Christophe Prud'homme" <prudhomm_at_[hidden]> wrote in message
> | 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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk