wg21.cmeerw.net

Proposed resolution (December, 2012):

Change 9.5.5 [dcl.init.list] paragraph 3 as follows:

  • ...

  • Otherwise, if T is a reference type, a prvalue temporary of the type referenced by T is list-initialized copy-list-initialized or direct-list-initialized, depending on the kind of initialization for the reference, and the reference is bound to that temporary. [Note: As usual...

  • ...

One of the bullets in 9.5.5 [dcl.init.list] paragraph 3 reads,

Otherwise, if T is a reference type, a prvalue temporary of the type referenced by T is list-initialized, and the reference is bound to that temporary.

This does not say whether the initialization of the temporary is direct-list-initialization, copy-list-initialization, or the same kind of list-initialization as the top-level initialization.

History Date User Action Args 2014-03-03 00:00:00adminsetstatus: drwp -> cd3 2013-10-14 00:00:00adminsetstatus: dr -> drwp 2013-05-03 00:00:00adminsetmessages: + msg4410 2013-05-03 00:00:00adminsetstatus: tentatively ready -> dr 2013-01-14 00:00:00adminsetmessages: + msg4197 2013-01-14 00:00:00adminsetstatus: drafting -> tentatively ready 2012-11-03 00:00:00adminsetstatus: open -> drafting 2012-04-12 00:00:00admincreate

Read the original on wg21.cmeerw.net ↗