We recommend using Visual Studio 2017

Compiler Error C2790

 

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: