Boost logo

Boost :

From: Rene Rivera (grafik666_at_[hidden])
Date: 2002-03-05 20:31:25


On 2002-03-05 at 05:31 PM, rogeeff_at_[hidden] (rogeeff) wrote:

>--- In boost_at_y..., Rene Rivera <grafik666_at_r...> wrote:
>> #ifndef BOOST_VERSION_DEF
>> #define BOOST_VERSION_DEF
>> #define BOOST_VERSION_STRING "Boost 1.27"
>> #define BOOST_VERSION_MAJOR 1
>> #define BOOST_VERSION_MINOR 27
>> #define BOOST_VERSION_SUBMINOR 0
>> #define BOOST_VERSION 102700
>> #endif
>
>Is there any specific reasons to prefer defines over const variables?

That's what already exists in version.hpp :-)

It can get used by preprocessor macros, like in
libs/config/test/config_info.cpp.

It makes it easier for autotools, and other programs to use in that form.

Not very good reasons, I know, but then again I'm not the one who decided it
should be a BOOST_VERSION macro ;-]

-- grafik - Don't Assume Anything
-- rrivera_at_[hidden] - grafik_at_[hidden]
-- 102708583_at_icq - Grafik666_at_AIM - Grafik_at_[hidden]


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