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

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

Messages

Date: 2016-02-15.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.)

History
Date User Action Args
2015-05-28 00:00:00admincreate