I thought it would be interesting to discuss a subtle C/C++ interview question I learned recently. Question is deceptively simple: "Can...
I thought it would be interesting to discuss a subtle C/C++ interview question I learned recently. Question is deceptively simple: "Can...
A new writeup on Non-Virtual Interface (NVI) idiom has been written on More C++ Idioms wikibook. In the writeup, I discuss the relationshi...
The open-content wikibook "More C++ Idioms" has grown quite a bit from it inception. Whenever I get time, I try to add more conten...
Dear readers, Thanks for your continued interest in the C++ Truths blog and a steady stream of feedback comments. For quite some time now, I...
I recently realized that function template overloading and function template specialization can interact with each other in complex ways giv...
Sometimes it is useful to be able iterate over all the elements of a std::map using standard algorithms like std::copy(), std::count(), std:...
For quite some time now, I am hoping to come across a book on modern C++ idiom as comprehensive as the Purple book by James Coplien! Finally...
Always have two overloaded versions of functions that take char * and const char * parameters. Declare (but don't define if not needed) ...