Compiler Error C2671

'function' : static member functions do not have 'this' pointers

The specified static member function could not access a this pointer.

The following is an example of this error:

struct S
{
   static S* const func() { return this; }  // error
};