Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-05-11 13:14:35

Dave Harris wrote:

> What's wrong with:
> for (auto i: vec)
> ?

Pretty much nothing unless auto is rejected, except the copy.

for( auto i: v )
    i = 0;

for( auto& i: v ) is the typical foreach, unless v is vector<bool> or
another proxied container.

Boost list run by bdawes at, gregod at, cpdaniel at, john at