Welcome to MSDN Blogs Sign in | Join | Help

Channel 9 Video: Stephan T. Lavavej - Everything you ever wanted to know about nullptr

Stephan T. Lavavej is back in front of the Channel 9 cameras once again for a discussion on our recently implemented C++0x feature “nullptr”. In a previous channel 9 appearance, Stephan spoke about the C++0x language and library features we were implementing for VS2010  and the various interdependencies between various features (for example, how rvalue references – a language feature – enable move semantics and perfect forwarding in our Standard Template Library implementation – a library feature.) In this video Stephan describes how rvalue references exposed a few loopholes in the C++ type system around the NULL macro (or more specifically around the value of the NULL macro, the integer constant 0, and how this value is treated “differently” by the compiler to other integer constants.) The issue had already been identified by the C++ Language Committee and a solution had been added to the C++0x language specification (the aforementioned “nullptr”). And to add even more good news, customers can see and use this feature (and all our other C++0x Features) in the Visual Studio 2010 Beta 2 which was released this week.  We hope you enjoy Stephan’s latest theatrical release.

 

Thanks

Damien

Published Tuesday, October 27, 2009 9:11 AM by vcblog
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

Wednesday, October 28, 2009 7:44 AM by Ben Voigt [C++ MVP]

# re: Channel 9 Video: Stephan T. Lavavej - Everything you ever wanted to know about nullptr

If keywords from VC++ 2005 are "recently implemented", then what do you call work on the C++0x stuff that wasn't borrowed from C++/CLI?

Wednesday, October 28, 2009 8:14 AM by vcblog

# re: Channel 9 Video: Stephan T. Lavavej - Everything you ever wanted to know about nullptr

Hello Ben

Sorry I do not understand your question? nullptr from C++0x is brand new, “nullptr” for C++/CLI  (unfortunately the same keyword – syntax – but with a different meaning – semantics) has been in C++/CLI for a couple of release now. Does this in any way your question?  

Thanks

Damien

Wednesday, October 28, 2009 10:40 AM by JK

# re: Channel 9 Video: Stephan T. Lavavej - Everything you ever wanted to know about nullptr

I don't understand why you can't just use #pragma managed/unmanaged around nullptr and that would give you whichever one you wanted.

Wednesday, October 28, 2009 3:14 PM by Gabest

# re: Channel 9 Video: Stephan T. Lavavej - Everything you ever wanted to know about nullptr

I noticed that beta2 broke a few std templates where NULL is no longer a valid value for pointer types (ie. std::pair<int, void*>(0, NULL)).

Wednesday, October 28, 2009 3:55 PM by Gabest

# re: Channel 9 Video: Stephan T. Lavavej - Everything you ever wanted to know about nullptr

... just what Stephan talks about on the video, I should have watched it first :)

Wednesday, October 28, 2009 6:06 PM by horeaper

# re: Channel 9 Video: Stephan T. Lavavej - Everything you ever wanted to know about nullptr

I filed my comment to connect, it's too long, doesn't fit in here...

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=504788

I noticed such discussion has already begun at the "beta 2 released" thread, hopefully I'm not too late to talk about this.

Thursday, October 29, 2009 12:12 PM by peterchen

# re: Channel 9 Video: Stephan T. Lavavej - Everything you ever wanted to know about nullptr

I've seen recently a lot of developers reporting a quite negative experience with reporting bugs on Microsoft Connect, and I am myself no stranger to the frustration of seeing a carefully prepared report for a feature-crippling bug being labeled as "can't repro" or "won't fix".

Maybe you could post here about your QA process and the principles and guidelines you follow regarding bug reports on beta and on released versions. I believe at the moment many developers have given up reporting anything on Connect, or even using it as a ressource to find solutions.

some recent threads on CodeProject:

http://www.codeproject.com/Lounge.aspx?fid=1159&select=3252612&tid=3252612

http://www.codeproject.com/Lounge.aspx?fid=1159&select=3252612&tid=3252401

Monday, November 02, 2009 10:51 AM by vcblog

# re: Channel 9 Video: Stephan T. Lavavej - Everything you ever wanted to know about nullptr

@ peterchen,

Thank you for the suggestion, this will be kept in mind for future posts.

Visual C++ Team

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker