Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-07-16 21:02:30


Ulrich Eckhardt <doomster_at_[hidden]> 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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk