Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-08-21 06:43:29


From: "Tanton Gibbs" <thgibbs_at_[hidden]>

> > > You can write:
> > > T x(T());
> > >
> > > which works for every type.
> >
> > No, that declares a function also. Try this:
>
> You should, however, be able to do
> T x( (T()) );
>
> The extra set of parens should disambiguate.

You didn't try the code I posted, did you?

-----------------------------------------------------------
           David Abrahams * Boost Consulting
dave_at_[hidden] * http://www.boost-consulting.com


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