Re:C++14 and SDL2: Managing Resources
by devcodex on Saturday April 19, 2014 @12:11AM
(#7612574)
The function that does all the work is 5 lines and then it works for any resource created from Init/Destroy function pair (a very common practice in C libraries), that's a hideous amount of code to you?
With your experience, how would you write a general solution for this problem?
With your experience, how would you write a general solution for this problem?