On Tue, Oct 23, 2012 at 2:27 PM, Lars Gullik Bjønnes <lar...@gullik.org> wrote:
> C++11 would make the code look a lot nicer, esp. thru the use of range
> based for, and auto:
>
>     std::vector<string>::iterator at = somevec.begin();
>     std::vector<string>::iterator end = someved.end();
>     for (; at != end; ++at) {
>         ...
>     }
>
> would be replaced with:
>
>     for (auto & s: somevec) {
>         ...
>     }
>
> and
>
>     std::vector<std::pair<string, string> > & vs = getVector();
>
> would be replaced with:
>
>     auto & vs = getVector();

That would be nice indeed but we would then require a recent version
of gcc and msvc. Not a real problem for msvc but gcc is a problem if
we want to support older distribution.

Abdel.
>
> -------------
>

Reply via email to