On Sat, 14 Dec 2002 10:49:30 -0500, David Abrahams
<[EMAIL PROTECTED]> 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.


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

Reply via email to