Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-02-18 11:20:48


----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>
To: <boost_at_[hidden]>

> From: "Daniel Frey" <daniel.frey_at_[hidden]>
> >>>
> I'm reading all those pro-'auto' comments with a little fear. Why it
> 'auto' really needed if we have a good typeof? Example:
> <<<
>
> It depends on what you consider a 'good' typeof. A typeof that makes it
easy
> to do auto/let things (IOW one that strips references and top-level cv
> qualifiers) isn't a good typeof as far as I'm concerned because it has
> little value.
>
> There's also the fact that when you have to repeat a complex expression
> twice you will make an error sooner or later. :-)

And along these lines I want the ability to put a typedef /anywhere/ in a
template declaration after the first argument (this is Walter Brown's idea):

template <class A, typdef some_complicated_expression<A> x; class Y = X&,
int z>
struct Foo
{
    ...
};


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