Title
Are cv-qualified std::nullptr_t fundamental types?
Status
open
Section
6.8.2 [basic.fundamental]
Submitter
Anoop Rana

Created on 2022-12-08.00:00:00 last changed 1 week ago

Messages

Date: 2023-01-17.21:18:52

Suggested resolution:

Change in 6.8.2 [basic.fundamental] paragraph 15 as follows:

A type denoted by cv std::nullptr_t is a distinct type. A value of type std::nullptr_t is a null pointer constant (7.3.12 [conv.ptr]). Such values participate in the pointer and the pointer-to-member conversions (7.3.12 [conv.ptr], 7.3.13 [conv.mem]). sizeof(std::nullptr_t) shall be equal to sizeof(void*).

The types described in this subclause are called fundamental types. [Note 11: Even if the implementation defines two or more fundamental types to have the same value representation, they are nevertheless different types. —end note]

Date: 2022-12-08.00:00:00

It is unclear whether cv std::nullptr_t is a fundamental type, given that it is declared in a library header and cv-qualifications are not mentioned in 6.8.2 [basic.fundamental] paragraph 15.

History
Date User Action Args
2023-01-17 21:18:52adminsetmessages: + msg7146
2022-12-08 00:00:00admincreate