Boost logo

Boost :

From: Tanton Gibbs (thgibbs_at_[hidden])
Date: 2002-08-21 01:20:11


> > 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.

Tanton


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