<分区>
Possible Duplicate:
Why is it an error to use an empty set of brackets to call a constructor with no arguments?
我看到了 C++ FQA entries关于嵌套的构造函数调用和支撑,并且一直想知道 C++ 解析器如何解析两个以及为什么解析器无法解析它。
所以我明白了为什么 foo xxx();
是模棱两可的。但是是什么让 foo x(bar());
模棱两可,因为它显然不是前向声明。 (即:应该有一个语法可以成功检测到这一点)。
有人能解释一下 C++ 语法那部分的局限性和歧义吗?