Created on 2012-07-10.00:00:00 last changed 1 month ago
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.
(Duplicate of issue 2894.)
History | |||
---|---|---|---|
Date | User | Action | Args |
2024-10-18 10:23:27 | admin | set | status: drafting -> dup |
2012-11-03 00:00:00 | admin | set | status: open -> drafting |
2012-07-10 00:00:00 | admin | create |