Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.