News for hackers. Stuff that matters.
Re:Auto Type Deduction in C++ Range-Based For Loops by gpderetta on Friday September 02, 2016 @02:18PM (#12415030)
references prolong the lifetime of temporaries. It wouldn't work in this case:

vector<int> v =...; const auto& x = v[59]; v.clear(); // x is dangling

There are no comments on this comment yet.