A simple class implemented twice. Once with C++98 and once with C++11. The blog post http://www.kullgren.org/cool-new-things-in-c explains the differences.
Compile with: make all
Run the test with: ./myTest
The unit tests uses googletest. The compiler used is clang, but it should be trivial to change to gcc in the makefile.