You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More generally, there are several places in the library that refer to
"NULL" or "non-NULL" that should be changed to lowercase null because
"null pointer value" is a term of art and with nullptr we should set a
good example and shun the NULL macro.
Some uses are not as trivial as doing a tolower substitution though,
should we consistently say "null pointer value" instead of "null
pointer", "null value" or just "null"?
Should std::function's constructor refer to a "null member pointer
value" as defined in 4.11 [conv.mem], instead of the current "NULL
pointer to member"?
From an email to cxxeditor@ (and pointed out by various people in the past):
I noticed following inconsistent usage of null and NULL in the current C++ standard (checked against N3337)
20.7.2.2.1/16 Uses NULL when i think it should be null to be consistent.
20.8.11.2.1/8 Same issue.
20.8.11.2.1/15 & 22 Uses NULL to compare where in other places in the std 0 and nullptr are used.
For example
20.7.1.2.5 compares against nullptr
20.7.2.2.1/22 compares against 0 (there are many more such)
There are many other NULL uses in the standard that are not clear that they should be NULL.
The text was updated successfully, but these errors were encountered: