Where in the standard are functions returning functions disallowed? I understand they are conceptually ridiculous, but it seems to me that the grammar would allow them. Acco
using namespace std; auto hello() { char name[] = "asdf"; return [&]() -> void { printf("%s\n", name); }; } int main() { hello()(); auto r = hello(); r(); return 0; }