Compartir a través de


Error del compilador C2671

'función': las funciones miembro static no tienen punteros 'this'

Una función miembro static ha intentado acceder a this.

El ejemplo siguiente genera el error C2671:

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