Practices to reduce memory leaks in C++

• 16 min read
CPP RAII 
One of the fundamental differences between C++ and the more modern and if I dare say popular programming languages such as Java and C#, is the lack of a garbage collector in C++. Often this is used as an example to portray how C++ has not kept up with the …

Typesafe Logging

Problem One of the common sources of runtime errors in C++ comes from using the good old vararg function types -- printf() or its variants. The problem stems from type mismatch between the type specifier in the format string and the actual arguments supplied to match this format string. Though most …

Explicit Overrides

::: {dir="ltr" style="text-align: left;" trbidi="on"} In the last two days, I have been twice bitten by the loose nature of legacy C++ language. I had developed a base class that abstracts the core features of a module a year back. The class itself was a great success. Since …