Compiler Error C2793
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C2793.
token' : unexpected token following '::', identifier or keyword 'operator' expected
The only tokens that can follow __super:: are an identifier or the keyword operator.
The following sample generates C2793
// C2793.cpp
struct B {
void mf();
};
struct D : B {
void mf() {
__super::(); // C2793
}
};
Show: