Boost logo

Boost :

From: Gennaro Prota (gennaro_prota_at_[hidden])
Date: 2002-12-09 14:50:11

On Mon, 09 Dec 2002 08:49:01 -0500, David Abrahams
<dave_at_[hidden]> wrote:

>No, I just meant that a falsely succeeding test is very _unlucky_.

Yeah. The reason why I said it was a lucky case is that I was thinking
to real code, not to the test: in real code where you want


to be equivalent to

 #if defined(MACRO) && (MACRO >0)

you want the condition to be false when MACRO is not defined, which is
exactly what you were getting. In your test instead, it was a very
unlucky case, as you say :-)


>I'd like to change that as follows:
> #define BOOST_WORKAROUND(symbol, test) ((symbol != 0) && (symbol test))
>Just in case.



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