This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115d. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-10-26


1106. Need more detail in nullptr keyword description

Section: 5.13.8  [lex.nullptr]     Status: C++11     Submitter: DE     Date: 2010-08-02

[Voted into the WP at the November, 2010 meeting.]

N3092 comment DE 3

It is not sufficiently clear that std::nullptr_t is a distinct type and neither a pointer type nor a pointer-to-member type. Add a note in 5.13.8 [lex.nullptr] stating that, preferably with cross-references to the normative statements in 6.8 [basic.types].

Proposed resolution (September, 2010):

Change 5.13.8 [lex.nullptr] paragraph 1 as follows:

The pointer literal is the keyword nullptr. It is a prvalue of type std::nullptr_t. [Note: std::nullptr_t is a distinct type that is neither a pointer type nor a pointer to member type; rather, a prvalue of this type is a null pointer constant and can be converted to a null pointer value or null member pointer value. See 7.3.12 [conv.ptr] and 7.3.13 [conv.mem]. —end note]