JayThirtySeven/gosu — comment on commit a2976ebe3167916e5b2a63ed9995846e39ad61b5
File:  line 0
By jlnr:

The first thing is good to know!

scoped_resource is nothing special, it just calls an arbitrary function to free stuff as soon as it goes out of scope. I use similar helpers in the Mac and Windows ports too, but I think in WindowX.cpp it was a bit of an overdesign. You could really kick it out while you're at it. :)