Title
T{expr} with reference types
Status
drafting
Section
7.6.1.4 [expr.type.conv]
Submitter
Steve Adamczyk

Created on 2012-07-10.00:00:00 last changed 139 months ago

Messages

Date: 2012-07-10.00:00:00

According to 7.6.1.4 [expr.type.conv] paragraph 4,

Similarly, a simple-type-specifier or typename-specifier followed by a braced-init-list creates a temporary object of the specified type direct-list-initialized (9.4.5 [dcl.init.list]) with the specified braced-init-list, and its value is that temporary object as a prvalue.

This wording does not handle the case where T is a reference type: it is not possible to create a temporary object of that type, and presumably the result would be an xvalue, not a prvalue.

History
Date User Action Args
2012-11-03 00:00:00adminsetstatus: open -> drafting
2012-07-10 00:00:00admincreate