“super”:该关键字的后面必须跟“::”
可以跟随关键字 __super
的唯一令牌是 ::
。
以下示例生成 C2792:
// C2792.cpp
struct B {
void mf();
};
struct D : B {
void mf() {
__super.(); // C2792
// try the following line instead
// __super::mf();
}
};
“super”:该关键字的后面必须跟“::”
可以跟随关键字 __super
的唯一令牌是 ::
。
以下示例生成 C2792:
// C2792.cpp
struct B {
void mf();
};
struct D : B {
void mf() {
__super.(); // C2792
// try the following line instead
// __super::mf();
}
};