Direct-list-initialization of a non-class object
9.4.5 [dcl.init.list]
Richard Smith

Created on 2013-09-20.00:00:00 last changed 49 months ago


Date: 2014-11-15.00:00:00

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

Date: 2014-06-15.00:00:00

Proposed resolution (June, 2014):

This issue is resolved by the resolution of issue 1467.

Date: 2013-09-20.00:00:00

The wording of 9.4.5 [dcl.init.list] paragraph 3,

if the initializer list has a single element of type E and either T is not a reference type or its referenced type is reference-related to E, the object or reference is initialized from that element

does not specify whether the initialization is direct-initialization, copy-initialization, or the same kind of initialization that applied to the list-initialization. This matters when E is a class type with an explicit conversion function. (Note that aggregate initialization performs copy-initialization on its subobjects, but it's not clear whether that should be the pattern followed for this case.)

Date User Action Args
2017-02-06 00:00:00adminsetstatus: drwp -> cd4
2015-05-25 00:00:00adminsetstatus: dr -> drwp
2014-11-24 00:00:00adminsetstatus: ready -> dr
2014-07-07 00:00:00adminsetstatus: review -> ready
2014-03-03 00:00:00adminsetmessages: + msg4868
2014-03-03 00:00:00adminsetmessages: + msg4867
2014-03-03 00:00:00adminsetstatus: open -> review
2013-09-20 00:00:00admincreate