Is this valid under the recently updated standard?
auto main = [](int argc, char* argv[]) -> int
{
return 0;
};
My best guess is that it depends on whether main() MUST be a function, or if it is allowed to be any globally scoped symbol that is callable (with ()).
No, and here’s why:
Lambdas are not functions, but function objects or functors: