This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 110c. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2023-02-07


1782. Form of initialization for nullptr_t to bool conversion

Section: 9.4  [dcl.init]     Status: CD4     Submitter: Hubert Tong     Date: 2013-02-26

[Moved to DR at the November, 2014 meeting.]

According to 9.4 [dcl.init] paragraph 14,

The form of initialization (using parentheses or =) is generally insignificant, but does matter when the initializer or the entity being initialized has a class type; see below.

This does not consider conversions from std::nullptr_t to bool, which are permitted only for direct-initialization (7.3.14 [conv.fctptr]).

Proposed resolution (February, 2014):

Change 9.4 [dcl.init] paragraph 14 as follows:

The form of initialization (using parentheses or =) is generally insignificant, but does matter when the initializer or the entity being initialized has a class type; see below. If the entity being initialized...