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
เบราว์เซอร์นี้ไม่ได้รับการสนับสนุนอีกต่อไป
อัปเกรดเป็น Microsoft Edge เพื่อใช้ประโยชน์จากคุณลักษณะล่าสุด เช่น การอัปเดตความปลอดภัยและการสนับสนุนด้านเทคนิค
'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