
Stuart Dootson wrote:
On Thu, Oct 30, 2008 at 12:34 AM, Mathias Gaunard <mathias.gaunard@ens-lyon.org> wrote:
Cory Nelson wrote:
In case anyone missed it, a VS10 CTP is out with partial 0x support (lambda, rvalue, static assert, and "auto"), better intellisense, and a modern c++ parallel library.
http://www.microsoft.com/downloads/details.aspx?familyid=922b4655-93d0-4476-...
Does it require a special mode to be set (such as std=c++0x for GCC) or are all these features available by default?
No - lambdas, auto and static_assert are all available with no command-line options set.
The only mention of C++ conformance in the online help (accessed by CL /?) is this, which is about C++ 98 conformance(!):
/Zc:arg1[,arg2] C++ language conformance, where arguments can be: forScope[-] - enforce Standard C++ for scoping rules wchar_t[-] - wchar_t is the native type, not a typedef
and the 'forScope' option seems to be ineffective anyway (i.e. C++ 98 for-loop scoping seems to always be active)
The default scoping is "adaptive", meaning that a name defined in the for loop leaks out and is visible after the loop. However you are also allowed to define the name again, which then hides the one from the for loop. Bo Persson