Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error C2671
Collapse the table of content
Expand the table of content

Compiler Error C2671

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

A static member function tried to access this.

The following sample generates C2671:

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