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
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for