Posts
Introducing the Trompeloeil C++ Mocking framework
December 13, 2014•1,219 words
Trompeloeil is a new mocking framework for C++, aimed at ease of use without sacrificing expressive power. In arts, trompeloeil is intended to mock...
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...
Exploring time keeping in ISO C++ 2011
September 25, 2011•756 words
A lot has been written about new features coming in the 2011 revision of ISO C++. One that has received surprisingly little attention is the
Compile time quick sort using C++ variadic templates
September 23, 2011•1,859 words
Edit June 4th 2015: This article is very dated. Read this revisiting article for a far better solution C++ is a strange language. In many ways it's...