
17 Jul
2006
17 Jul
'06
1:02 a.m.
Ulrich Eckhardt <doomster@knuut.de> writes:
Let's take 0x030411 as an example. Now, since we want the user to be able to write:
#if BOOST_CXX_FOO == BOOST_VERSION_NUMBER(3, 4, 11) // (a)
I'd prefer not to write this, because how would you express a different relationship than equality? Sometimes you simply want to say 'if major=2'
These cases are comparitively rare #if BOOST_CXX_FOO >= BOOST_VERSION_NUMBER(2,0,0) \ && BOOST_CXX_FOO < BOOST_VERSION_NUMBER(3,0,0)
or 'if major=3 and minor>2', so I'd rather need BOOST_CXX_FOO_MAJOR etc.
#if BOOST_CXX_FOO >= BOOST_VERSION_NUMBER(3,2,0) \ && BOOST_CXX_FOO < BOOST_VERSION_NUMBER(4,0,0) -- Dave Abrahams Boost Consulting www.boost-consulting.com