What is the different between +[](){}; and (+[](){}); and why the expression is valid

后端 未结 0 1665
别那么骄傲
别那么骄傲 2020-11-27 06:18

As the title stated. The code is compiled using GNU c++2a

int main(){
  (+[](){});
  return 0;
}

Compiles fine. However, the following code g

相关标签:
回答
  • 消灭零回复
提交回复
热议问题