Filtered by: tags=CPP

Practices to reduce memory leaks in C++

Dec. 4, 2015 |  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

June 19, 2013 |  CPP  type-safe  logging 
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 ma

Explicit Overrides

Feb. 26, 2013 |  CPP  override  CPP11 
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 developing it for a specific modul