On Mon, 09 Dec 2002 08:49:01 -0500, David Abrahams
<[EMAIL PROTECTED]> 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

 #if BOOST_WORKAROUND(MACRO, >0)

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.

Good.


Genny.


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to