//g++ -std=c++0x autolambda.cpp #include using namespace std; int main() { auto func = [] () { cout << "Hello world\n"; }; func(); }