Boost logo

Boost :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2006-06-14 15:10:21


Gennaro Prota wrote:
> On Wed, 14 Jun 2006 13:14:40 -0500, Rene Rivera
> <grafik.list_at_[hidden]> wrote:
>
>> Rene Rivera wrote:
>> OK, it turns out I had already checked in all the changes I had so far.
>> And I updated the wiki page. And yes any help in implementation,
>> documentation, and testing is appreciated.
>
> Very good job. The only part I think I've not understood completely is
> the issues section: particularly the sentence
>
> "The only option I can think of is to go ahead and define the
> corresponding version macro and have the code deal with the
> multiple defs."
>
> Considering, for instance, Comeau with _MSC_VER defined, you mean user
> code would need to do:
>
> #if BOOST_WORKAROUND(BOOST_CXX_COMO, == ...) && \
> (defined _MSC_VER && _MSC_VER == ...)
>
> ? That seems acceptable to me.

Close... The second use would also use the standard macros. Hence:

#if BOOST_WORKAROUND(BOOST_CXX_COMO, == BOOST_VERSION_NUMBER(?,?,?)) &&\
     BOOST_WORKAROUND(BOOST_CXX_MSVC, == BOOST_VERSION_NUMBER(?,?,?))

In one of the previous discussions Dave mentioned that optimizing the
BOOST_WORKAROUND macro to be more terse. For example:

#if BOOST_WORKAROUND(BOOST_CXX_COMO,==,?,?,?) &&\
     BOOST_WORKAROUND(BOOST_CXX_MSVC,==,?,?,?)

Or something like that :-) But that would be work to do after the core
config changes are done.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

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