Posts
A flexible lexicographical comparator for C++ structs
January 1, 2016•1,314 words
We've all hand crafted comparison operators for structs with many members, and we've all cursed the tedium. It's all right for equality comparison,...
Cache optimizing a priority queue
August 3, 2015•1,605 words
I must begin with saying that if you found this because you have a performance problem, you should almost certainly look elsewhere. It is highly un...
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...
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...
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...