Movatterモバイル変換


[0]ホーム

URL:


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

2025-12-20


1106. Need more detail innullptr 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 thatstd::nullptr_t is adistinct type and neither a pointer type nor a pointer-to-member type.Add a note in 5.13.8 [lex.nullptr] stating that, preferablywith cross-references to the normative statements in 6.9 [basic.types].

Proposed resolution (September, 2010):

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

The pointer literal is the keywordnullptr. It is a prvalueof typestd::nullptr_t.[Note:std::nullptr_t is a distinct type that is neither a pointertype nor a pointer to member type; rather, a prvalue of this type is anull pointer constant and can be converted to a null pointer value ornull member pointer value. See 7.3.12 [conv.ptr] and7.3.13 [conv.mem]. —end note]



[8]ページ先頭

©2009-2026 Movatter.jp