Thursday, April 28, 2011

How to enable nullptr from C++0x in the Visual C++ 2010?

I wonder how can I enable the nullptr in the just released Visual Studio 2010. (C++ project, not managed).

This is one of the new features but it is not available by default and looking inside the documentation at http://msdn.microsoft.com/en-us/library/4ex65770(VS.100).aspx it seams that it is enabled by /clr but this is managed!

Is this a feature added only for .NET?

From stackoverflow
  • I simply created a new C++ Win32 console project in VS2010RC and nullptr keyword was just available to use as they have shown in the examples.

    Motti : Yep enabled by default

0 comments:

Post a Comment