Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-08-02 12:31:31


From: "Rob Stewart" <stewart_at_[hidden]>
> From: "William E. Kempf" <williamkempf_at_[hidden]>
> >
> > bool b();
> >
> > initializes b to false. So I'd think the default ctor should
initialize
> > the state to false.
>
> That doesn't invoke the default ctor. You'd have to do something like
this:
>
> bool b(bool());
>
> to get what you're referring to.

Language lawyer day on boost!

bool b(); // function, no arguments, returns bool

bool b(bool()); // function, one argument bool (*) (), returns bool

bool b = bool(); // value-initialized bool
bool b((bool())); // ditto


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