cplusplus / nbballot

Handling of NB comments in response to ballots
14 stars 4 forks source link

US 9-037 6.7.7 [class.temporary], 8.6.5 [stmt.ranged] Temporaries in range-based for loop #481

Closed wg21bot closed 1 year ago

wg21bot commented 1 year ago

Temporaries created in the initializer of range-based for loops do not have their lifetimes extended, which can lead to subtle bugs in many common use cases.

Proposed change:

Adopt P2644, which extends the lifetime of temporaries in range-based for loops.

jfbastien commented 1 year ago

Duplicate https://github.com/cplusplus/nbballot/issues/471

erichkeane commented 1 year ago

No objection to unanimous consent that this is a duplicate as stated above.