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

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 

Community Additions

ADD
Show:
© 2015 Microsoft