Reply to comment

Re: Lambda expressions

Hi Jason,

Thanks for your feedback; the compilation problem will get fixed today!

Regarding the lambda, you first need to enable the C++11 standard (you just enabled a warning kind):

$ cling -std=c++11
[cling]$ #include <iostream>
[cling]$ auto func = [] () { std::cout << "Hello world"; };
input_line_5:2:14: error: lambda expressions are not supported yet
 auto func = [] () { std::cout << "Hello world"; };
             ^
Now if you look at the implementation status of lambdas in clang you will see that this is expected. If you want, help the clang guys implement it and we will all benefit from it! :-)

Cheers, Axel

Reply

The content of this field is kept private and will not be shown publicly.