Tag: gotw

C ++最令人烦恼的parsing

直接从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 这怎么可能?