[Cs3] default arguments for lambda expressions
Mikhail Nesterenko
mnestere at kent.edu
Tue Sep 24 13:52:16 EDT 2024
Is allowed since C++14 so the below is legal:
auto func1 = [](int i = 6) { return i + 4; };
std::cout << "func1: " << func1() << '\n';
Thanks,
--
Mikhail
More information about the cs3
mailing list