หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'identifier' : only member functions and bases can be virtual
Remarks
A global function or class is declared virtual. This is not allowed.
Example
The following example generates C2575:
// C2575.cpp
// compile with: /c
virtual void func() {} // C2575
void func2() {}
struct A {
virtual void func2(){}
};