Muistiinpano
Tämän sivun käyttö edellyttää valtuutusta. Voit yrittää kirjautua sisään tai vaihtaa hakemistoa.
Tämän sivun käyttö edellyttää valtuutusta. Voit yrittää vaihtaa hakemistoa.
'function': cannot take address of this member function
Remarks
You cannot take the address of a constructor or destructor. For more information, see Address-of operator: & and Pointers to Members.
Example
The following example generates C2277:
// compile with: /c
class A
{
public:
A();
};
(*pctor)() = &A::A; // C2277