Issue2133

Title 2133. Converting std::nullptr_t to bool
Status open Section 4.13 [conv.fctptr]
Submitter Richard Smith

Created on 2015-05-28.00:00:00 by admin, last changed by admin.

Messages
msg5641 (view) Date: 2017-02-06.00:00:00

According to 4.13 [conv.fctptr] paragraph 1,

For direct-initialization (8.6 [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 8.6 [dcl.init], perhaps as a bullet in paragraph 1?

(See also issue 1781.)

History
Date User Action Args
2017-02-06 00:00:00adminsetsection: 4.12 [conv.fctptr] -> 4.13 [conv.fctptr]
2016-02-15 00:00:00adminsetsection: 4.12 [conv.bool] -> 4.12 [conv.fctptr]
2015-05-28 00:00:00admincreate