anonymousstruct 或 union 未宣告任何數據成員
備註
匿名結構或等位必須至少有一個資料成員。
Example
下列範例會產生 C4408:
// C4408.cpp
// compile with: /W4 /LD
static union
{
// int i;
};
// a named union can have no data members
// } MyUnion;
anonymousstruct 或 union 未宣告任何數據成員
匿名結構或等位必須至少有一個資料成員。
下列範例會產生 C4408:
// C4408.cpp
// compile with: /W4 /LD
static union
{
// int i;
};
// a named union can have no data members
// } MyUnion;