|
class A { void f(int); public: void f(long); void f(double); }; void g() { A().f(1L); // OK A().f(1.); // OK A().f(10); // error } |
Yes, "1." is a floating point number.
该日志由 csdn-whinah 于2011年12月24日发表在
C++分类下,
你可以
发表评论,并在保留
原文地址及作者的情况下
引用到你的网站或博客。
转载请注明:
Name lookup take place before access control
标签:
C++