3 ms·
That's what I was thinking when reading the article. It almost seems like capturing stack variables by reference should not be allowed at all but that would be
by zwieback 15y ago
That's what I was thinking when reading the article. It almost seems like capturing stack variables by reference should not be allowed at all but that would be too restrictive.
Ultimately the C++ problems have to be resolved by conventions and idioms, just like we've all learned to be careful when passing a pointer to a local variable.