Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-09-21 14:26:27


"Goran Mitrovic" wrote:

> Why not something like:
>
> class aa {
> public:
> operator bool() const {
> return false;
> }
> };
>
> do {} while(aa());
>
>
> Optimizing this shouldn't be a problem for most compilers...
>
BCB won't optimize it away.
Version for dumb compilers should be provided too.

/Pavel


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