Created on 2012-10-10.00:00:00 last changed 94 months ago
Rationale (November, 2016):
With the adoption of paper P0135R1, there is no longer any copy in this example to be elided.
Notes from the October, 2012 meeting:
The consensus of CWG was that the behavior should be the same, regardless of whether the copy is elided or not.
If an initializer_list object is copied and the copy is elided, is the lifetime of the underlying array object extended? E.g.,
void f() {
std::initializer_list<int> L =
std::initializer_list<int>{1, 2, 3}; // Lifetime of array extended?
}
The current wording is not clear.
(See also issue 1299.)
History | |||
---|---|---|---|
Date | User | Action | Args |
2017-02-06 00:00:00 | admin | set | messages: + msg5988 |
2017-02-06 00:00:00 | admin | set | status: drafting -> nad |
2012-11-03 00:00:00 | admin | set | messages: + msg4097 |
2012-10-10 00:00:00 | admin | create |