Compiler Error C2790
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 C2790.
super' : this keyword can only be used within the body of class member function
This error message appears if the user ever tries to uses the keyword super outside of the context of a member function.
The following sample generates C2790:
// C2790.cpp
void f() {
__super::g(); // C2790
}
Show: