Created on 2024-01-20.00:00:00 last changed 4 months ago
Proposed resolution (approved by CWG 2024-02-02):
Change in 6.7.7 [class.temporary] paragraph 7 as follows:
The fourth context is when a temporary objectother than a function parameter objectis created in the for-range-initializer of a range-based for statement. If such a temporary object would otherwise be destroyed at the end of the for-range-initializer full-expression, the object persists for the lifetime of the reference initialized by the for-range-initializer.
[Accepted as a DR at the March, 2024 meeting.]
(From submission #490.)
Parameter objects are not temporary objects, according to 6.7.7 [class.temporary] paragraph 1. An exception hinting at this in 6.7.7 [class.temporary] paragraph 7 should be removed.
History | |||
---|---|---|---|
Date | User | Action | Args |
2024-07-20 13:52:34 | admin | set | status: dr -> drwp |
2024-04-05 21:43:46 | admin | set | status: ready -> dr |
2024-03-20 14:10:31 | admin | set | status: tentatively ready -> ready |
2024-02-03 00:15:40 | admin | set | status: open -> tentatively ready |
2024-01-30 15:12:32 | admin | set | messages: + msg7584 |
2024-01-20 00:00:00 | admin | create |