Condividi tramite


Errore del compilatore C2792

'super': questa parola chiave deve essere seguita da '::'

L'unico token che può seguire la parola chiave __super è ::.

L'esempio seguente genera l'errore C2792:

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

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

      // try the following line instead
      // __super::mf();
   }
};