On 09/11/2010 08:08 PM, Flex Ferrum wrote:
> for (auto i: {1, 2, 3, 4, 5})
> {
> std::cout << i << " ";
> }
>
It works fine already, see also the new testcase range-for6.C. Unless
you mean something else entirely and I'm not getting your point...
Paolo.
Hello.
It is a great effort to implement 'range-based for' in gcc 4.6. But it
could be interesting for you what recent C++0x standard draft (N3126)
contains some significant change for this feature:
--- begin quote --
6.5.4 The range-based for statement [stmt.ranged]
1 The For a rang