A new writeup on Int-to-type idiom has been posted on More C++ Idioms wikibook. It is used to achieve static dispatching based on constant ...
copy elision and copy-and-swap idiom
An updated writeup of the copy-and-swap idiom is now available on the More C++ Idioms wikibook. A comparison of two different styles of as...
linked list using std::pair (infinite regression)
Defining a node of a linked-list using std::pair sounds as simple as drinking a Starbucks's white chocolate mocha. But it really isn'...
return void
I thought it would be interesting to discuss a subtle C/C++ interview question I learned recently. Question is deceptively simple: "Can...
Non-Virtual Interface and the Fragile Base Class Interface Problem
A new writeup on Non-Virtual Interface (NVI) idiom has been written on More C++ Idioms wikibook. In the writeup, I discuss the relationshi...
RSS Feed for More C++ Idioms Wikibook
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...
Redirecting C++ Truths feed
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...
Function Template Overload Resolution and Specialization Anomaly
I recently realized that function template overloading and function template specialization can interact with each other in complex ways giv...