Boost logo

Boost :

From: Fernando Cacciola (fcacciola_at_[hidden])
Date: 2002-08-21 09:02:38


----- Original Message -----
From: "Tanton Gibbs" <thgibbs_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, August 21, 2002 3:20 AM
Subject: Re: [boost] Generic construction

> > > 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.
>
I think it should work, but bcc5.5.1 fails with: "Expression syntax".

Fernando Cacciola
Sierra s.r.l.
fcacciola_at_[hidden]
www.gosierra.com


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