C++11 lambda returning a value