หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'function' : member function not allowed in anonymous union
Remarks
An anonymous union cannot have member functions.
Example
The following example generates C2627:
// C2627.cpp
int main() {
union { void f(){} }; // C2627
union X { void f(){} };
}