How is “int main(){(([](){})());}” valid C++?
I recently came across the following esoteric piece of code. int main(){(([](){})());} Reformat it as follows to make it more readable: int main(){ (([](){})()); // Um… what?!?! } But I can’t get my head around how (([](){})()) is valid code. It doesn’t look like function pointer syntax. It can’t be some operator overloading trick. The … Read more