Condividi tramite


Errore del compilatore C2671

'function': le funzioni membro statiche non hanno puntatori 'this'

Osservazioni:

Una static funzione membro ha tentato di accedere thisa .

Esempio

L'esempio seguente genera l'errore C2671:

// C2671.cpp
struct S {
   static S* const func() { return this; }  // C2671
};