Generic lambdas aren't quite ready in g++-4.9.0.

Use function objects instead of generic lambdas. It doesn't mangle properly and causes the demangler to crash on gdb load.