Compiler Error C2791
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 C2791.
illegal use of 'super': 'class' does not have any base classes
The keyword super was used within the context of a member function of a class that does not have any base classes.
The following sample generates C2791:
// C2791.cpp
struct D {
void mf() {
__super::mf(); // C2791
}
};
Show: