Boost logo

Boost :

From: Gennaro Prota (gennaro_prota_at_[hidden])
Date: 2002-12-14 14:52:54


On Sat, 14 Dec 2002 10:49:30 -0500, David Abrahams
<dave_at_[hidden]> wrote:

>Someone expressed concern about using the PP lib in the definition of
>this macro, because, after all, the PP lib itself might want to use
>it. I presume you're not worried about that, though.

Sorry to ruin your fun but I'm still with Einstein here (all this
stuff amuses me as well, just I wouldn't use it in this situation)

a)

// to be changed Borland
#define ERROR(cond) (1 / (cond? 0:1))

#define WORKAROUND_WITH_CHECK(symbol, test) ( \
        ((symbol) != 0) \
        && ERROR(DETECT_OUTDATED && !((symbol) test)) \
                  )

b)

#define ERROR(cond) (1 / (cond? 0:1))

#define WORKAROUND_WITH_CHECK(symbol, version) ( \
        ((symbol) != 0) \
        && ERROR(DETECT_OUTDATED && !((symbol) <= version)) \
                  )

Genny.


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