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

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

msg5641 (view) Date: 2018-02-27.00:00:00

According to 7.13 [conv.fctptr] paragraph 1,

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

(See also issue 1781.)

Date User Action Args
2018-02-27 00:00:00adminsetsection: 4.13 [conv.fctptr] -> 7.13 [conv.fctptr]
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