Re:C++14 and SDL2: Managing Resources
by azth on Friday April 18, 2014 @02:49PM
(#7610622)
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].
Another use on here suggested a shorter and more efficient way to write the code [0].
https://news.ycombinator.com/item?id=7610571