C++ Programming Error/Warning Analysis (2) extra qualification
- Author:柳大·Poechant(钟超)
- Email:zhongchao.ustc#gmail.com (# -> @)
- Blog:Blog.youkuaiyun.com/Poechant
- Date:May 9th, 2012
Explanation
实例:
…
class Hello {
…
void Hello::hello();
…
};
…
提示(g++):
Hello.h:17: error: extra qualification 'Hello::' on member 'hello'
这通常是拷贝代码引起的,应改为:
…
class Hello {
…
void hello();
…
};
…
Reference
- http://hi.baidu.com/zjugator/blog/item/77bb6cec02bee22163d09f7d.html
-
柳大·Poechant:Blog.youkuaiyun.com/Poechant
-
本文由钟超撰写,详细解释了C++编程中出现的额外资格化错误,并提供了修正建议。通过实例展示了如何正确处理成员函数的资格化问题,以避免不必要的编译错误。

3599

被折叠的 条评论
为什么被折叠?



