Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Auto Type Deduction in C++ Range-Based For Loops. Parent comment
vector<int> v =...; const auto& x = v[59]; v.clear(); // x is dangling
There are no comments on this comment yet.
vector<int> v =...; const auto& x = v[59]; v.clear(); // x is dangling