Posts
Performance observations on a C++ vector of lambdas
June 5, 2015•1,339 words
Edit 2015-Jun-7: The source code is available on GitHub When writing unit tests, you typically don't care much about execution speed, but compile t...
Compile time quicksort in idiomatic modern C++
January 18, 2015•1,636 words
A contender for the most useless program ever written just got a much needed overhaul. In 2011 I wrote about compile time quick sort as a challenge...
Sequence Control with the Trompeloeil C++ Mocking Framework
January 6, 2015•1,350 words
As previously introduced , the Trompeloeil C++ framework is a new mocking framework for C++14. If you're not at all familiar with Trompeloeil , you...
Asserting compilation errors in C++
August 28, 2014•554 words
Sometimes when crafting an interface, we want to ensure that some illegal constructs leads to compilation errors. After all, a good interface is ea...
strings as types
March 31, 2013•1,061 words
As odd as it may seem, I have more than once felt the need to express a string literal as a unique type which can be used as a any class. As an exa...
Compile time messages in C++
September 28, 2011•983 words
At times it's desirable to give a message at compile time. Sounds cheezy, eh? Well read on and find out. As an example of the cheezy kind, the comp...