【发布时间】:2013-05-16 13:27:37
【问题描述】:
直接取自http://herbsutter.com/2013/05/09/gotw-1-solution/
虽然widget w(); 对我来说很清楚,但我不知道下面的代码怎么可能是函数声明?
// same problem (gadget and doodad are types)
//
widget w( gadget(), doodad() ); // pitfall: not a variable declaration
这怎么可能?
【问题讨论】: