jeans chen
we've got them by the balls

Declare non-member functions when type conversions should apply to all parameters.

104页

只有当参数被列于参数列(parameter list)内,这个参数才是隐式类型转换的合格参与者。

 

这就是为什么上述第一次调用可通过编译,第二次调用则否。因为第一次调用伴随一个放在参数列内的参数,第二次调用则否。

 

posted on 2013-08-01 14:15  jeans chen  阅读(190)  评论(0编辑  收藏  举报