Blog

Resource management and RAII in C++

Recently, I have encountered a legacy code base at work. There are several tremendous class written like this: The real class is much bigger. We can criticize this snippet in multiple ways. For…