Export (0) Print
Expand All
Expand Minimize

Compiler Error C2671

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

A static member function tried to access this.

Example

// C2671.cpp
struct S
{
   static S* const func() { return this; }  // C2671
};
Show:
© 2015 Microsoft