Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 2002-02-19 01:11:31


On 2/18/02 9:42 PM, "Wyss, Felix" <felixw_at_[hidden]> wrote:

> What about allowing to qualify "auto" further, such as:
>
> for( const auto it = v.begin(); it != v.end(); ++it )
>
> If we assume that "auto" corresponds to "typeof( <rhs> )", then the above
> should fit nicely.

I don't think that would work. Because const vector<int>::iterator and
vector<int>::const_iterator are not the same thing.

    -- Darin


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