Boost logo

Boost :

From: Paul Mensonides (pmenso57_at_[hidden])
Date: 2002-12-12 20:52:58


----- Original Message -----
From: "Gennaro Prota" <gennaro_prota_at_[hidden]>

> >Does it only emit a warning for modulus by zero too?
>
> Yes. I don't know about Kylix but all the other flavours of Borland
> C++ just give W8082 for both / and %, in constant expressions (by
> default; of course you can even disable it with -w-zdi or -w-8082)

Does it yield true or false? I.e. what happens here:

#if 1 / 0

section 1

#else

section 2

#endif

I don't see how it could logically choose, since 1 / 0 makes no sense.

Paul Mensonides


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