Boost logo

Boost :

Subject: Re: [boost] first Visual Studio 2010 CTP is out, c++0x
From: Bo Persson (bop_at_[hidden])
Date: 2008-10-30 13:59:17


Stuart Dootson wrote:
> On Thu, Oct 30, 2008 at 12:34 AM, Mathias Gaunard
> <mathias.gaunard_at_[hidden]> wrote:
>> Cory Nelson wrote:
>>>
>>> In case anyone missed it, a VS10 CTP is out with partial 0x
>>> support (lamb­da, rval­ue, stat­ic as­ser­t, and "auto"), better
>>> intellisense, and a modern c++ parallel library.
>>>
>>>
>>> http://www.microsoft.com/downloads/details.aspx?familyid=922b4655-93d0-4476-bda4-94cf5f8d4814
>>
>> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk