Compiler Error C2277
'identifier' : cannot take address of this member function
You cannot take the address of a member function.
The following sample generates C2277:
// C2277.cpp
class A {
public:
A();
};
(*pctor)() = &A::A; // C2277
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