I really like the scope(exit) statements in D. They allow you to keep the cleanup code next to the initialization code making it much easier to maintain and understand. I wish we had them in C++. Turns out this can be implemented easily using some of the new C++ features. … Continue reading scope(exit) in C++11
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed