Compiler Error C2792
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Error C2792

Error Message

'super' : this keyword must be followed by '::'

The only token that can follow the keyword __super is ::.

The following sample generates C2792:

// C2792.cpp
struct B {
   void mf();

struct D : B {
   void mf() {
      __super.();   // C2792

      // try the following line instead
      // __super::mf();
© 2015 Microsoft