description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Error C2671 |
Compiler Error C2671 |
11/04/2016 |
|
|
fc0ee40f-c8f3-408f-b89d-745d149c4169 |
'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
};