Posts
A flexible lexicographical comparator for C++ structs
January 1, 2016•1,329 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,609 words
I must begin by saying that, if you found this because you have a performance problem, you should almost certainly look elsewhere. It is highly unl...
Performance observations on a C++ vector of lambdas
June 5, 2015•1,341 words
Edit (June 2015):: The source code is now available on GitHub . When writing unit tests, you typically don't care much about execution speed, but c...
Sequence control with the Trompeloeil C++ mocking framework
January 6, 2015•1,354 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•555 words
Sometimes when crafting an interface, we want to ensure that some illegal constructs lead to compilation errors. After all, a good interface is eas...