3 ms·
I suppose you simply wrap the functionality in a class with a destructor? That's what I thought at first too; however, the author mentions in the comments sect
by azth 13y ago
I suppose you simply wrap the functionality in a class with a destructor? That's what I thought at first too; however, the author mentions in the comments section on that page something about this interacting in a hard fashion with C++11's rvalue references, and copy and move constructors.
Another use on here suggested a shorter and more efficient way to write the code [0].
https://news.ycombinator.com/item?id=7610571 https://news.ycombinator.com/item?id=7610571