Compiler Error C2790
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

Compiler Error C2790

Error Message

'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
© 2016 Microsoft