a bit more fun with C++ lambdas