Boost logo

Boost :

From: Kevin Atkinson (kevinatk_at_[hidden])
Date: 2000-03-06 08:12:24


Dave Abrahams wrote:
>
> on 3/6/00 7:50 AM, Kevin Atkinson at kevinatk_at_[hidden] wrote:
>
> >> Implicit conversion to bool is a terrifying idea, since bools can be
> >> promoted to any integer type.
> >
> > Well pointers have an explicit conversion to bool.....
>
> last I checked, this still wasn't legal:
>
> void f(bool);
> inline g(char* p) { f(p); }

Works on my compiler and I KNOW this is legal

void f(char * p) {if (p) {} else {}}
which equals
void f(char * p) {if (p != 0) {} else {}}

-- 
Kevin Atkinson
kevinatk_at_[hidden]
http://metalab.unc.edu/kevina/

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