หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
an anonymous struct or union at global or namespace scope must be declared static
Remarks
An anonymous struct or union has global or namespace scope but is not declared static.
Example
The following example generates C2646 and shows how to fix it:
// C2646.cpp
// compile with: /c
union { int i; }; // C2646 not static
// OK
static union { int j; };
union U { int i; };