Title
Converting std::nullptr_t to bool
Status
cd5
Section
7.3.14 [conv.fctptr]
Submitter
Richard Smith

Created on 2015-05-28.00:00:00 last changed 47 months ago

Messages

Date: 2018-06-15.00:00:00

Proposed resolution (June, 2018):

This issue is resolved by the resolution of issue 1781.

Date: 2018-11-15.00:00:00

[Accepted as a DR at the November, 2018 (San Diego) meeting.]

According to 7.3.14 [conv.fctptr] paragraph 1,

For direct-initialization (9.4 [dcl.init]), a prvalue of type std::nullptr_t can be converted to a prvalue of type bool; the resulting value is false.

The mention of direct-initialization in this context (added by issue 1423) seems odd; standard conversions are on a level below initialization. Should this wording be moved to 9.4 [dcl.init], perhaps as a bullet in paragraph 1?

(See also issue 1781.)

History
Date User Action Args
2020-12-15 00:00:00adminsetmessages: + msg6374
2020-12-15 00:00:00adminsetstatus: open -> cd5
2015-05-28 00:00:00admincreate