Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-06-14 17:42:47


Gennaro Prota <gennaro_prota_at_[hidden]> writes:

> On Wed, 14 Jun 2006 14:10:21 -0500, Rene Rivera
> <grafik.list_at_[hidden]> wrote:
>
>>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.
>
> Nice :) I'm inclined to go directly for that (actually the commas
> could be eliminated as well, but that would require some preprocessing
> magic which we already preferred not to have when deciding the first
> implementation of BOOST_WORKAROUND(); see, for instance
>
> http://lists.boost.org/Archives/boost/2002/12/40843.php

I don't see that conclusion there, but I have to say that I don't
think whitespace is particularly better than commas here.

-- 
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