New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use nullptr in code blocks #208
Comments
Related to #52, which is about null values in normative text. |
From a PDF sent to LWG by Geoff Alexander: C++11 changes to use nullptr rather than 0 |
Here's the result of
I'd be happy to provide a patch for this. |
Ah, and most of these should be replaced as well (
|
Hmm 0 as a nullptr appears in various other contexts as well, and not all uses of 0 as a nullptr should be replaced, so now I'm just going over all occurrences of 0 in the standard, preparing a patch. |
Is there any progress on the patch? |
Just out of curiosity, what's the rationale for putting any effort at all into replacing these 0's w nullptr? |
(I had a patch but retracted it, no progress from me on this item.) |
@faisalv: I presume we want to show "good" coding practice in the library parts of the standard. In contrast, we want to show a variety of coding styles in the core parts of the standard, avoiding core endorsement of a particular one. |
Do we want to replace 0 with nullptr in the library sections of the standard? |
Editorial meeting consensus: Agreed with "Do we want to replace 0 with nullptr in the library sections of the standard?" |
Updated wiki page. |
Use nullptr where we currently use 0 or NULL.
The text was updated successfully, but these errors were encountered: