Boost logo

Boost :

From: Gennaro Prota (gennaro_prota_at_[hidden])
Date: 2002-12-08 13:24:08

On Sun, 08 Dec 2002 12:34:48 -0500, David Abrahams
<dave_at_[hidden]> wrote:

>> // untested
>> #define BOOST_PSEUDO_IS_DEFINED(symbol) BOOST_JOIN(symbol, 1)
>> #define BOOST_WORKAROUND(symbol, test) \
>> (BOOST_PSEUDO_IS_DEFINED(symbol) && symbol test)
>This will fail if "symbol1" is defined, won't it?

Oops, due to the font used when reading mails from Yahoo, I thought
this was a typo for "symbol" :-s Yes, you are right. It wasn't
intended as a solution to

>> b) "hides" possible problems in the (unlikely, granted) case that
>> X is undefined but X1 is and you write:
>> (the result "unexpectedly" depends on the expansion of X1).

just as an (untested) way to avoid the dependency on the preprocessor
library. It is exactly the same of the current implementation, except
that uses BOOST_JOIN instead of BOOST_PP_CAT.


Boost list run by bdawes at, gregod at, cpdaniel at, john at