Re:Modern C for C++ Peeps
by cjfd on Saturday January 07, 2023 @12:58PM
(#34290669)
One can do lots of things with RAII. I once wrote some classes to generate xml. I used constructors to write opening tags and destructors to write the corresponding closing tags....
[ Parent
| on HN ]
We implemented a full blown profiler for win32 platform using RAII to track profiling data back in ~2000