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.
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.