Support C++11 range-based for-loop
Range-based for-loop http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2930.html
I have created as a separate idea to determine the priority of this feature from the rest of C++11 features
6 comments
-
ChrisG
commented
I tried it an confirmed this is already implemented, should the title be edited to account for this?
int const testArray[] = {1, 2, 3, 4};
for (auto value : testArray)
{}
-
Simon Dan
commented
It has been implimented into the BETA vc11.
although the intellisence can't recognized still(it's not a big deal). -
Anna Metcalfe
commented
@RPotter Thanks for letting us know. That's good news.
-
RPotter
commented
According to Herb at Going Native, range-for will be in VC11
-
Anna Metcalfe
commented
@xTed Yes, but that's not standard C++.
That said, the fact that support for a non-standard version of the same thing is there should in theory mean that it would be easy enough for them to also implement the standard version in VC11.
The question is, will they?
-
xTed ZaleZ
commented
VS10 in native code supports syntax from managed:
for each( auto x in container )It works at least for arrays and std::containers.