|
Boost : |
From: Frank Birbacher (bloodymir.crap_at_[hidden])
Date: 2008-05-31 08:56:56
Hi!
Tom Brinkman schrieb:
> bool less0=(val<0.0 ? true : false);
"x ? true : false" is the same as "bool(x)"
const bool less0 = val<0.0;
But since you are only using it once, why bother with a variable:
if(val<0.0)...
Frank
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk