Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
'EnumOrUnion' : enum/union cannot be used as a base class
Remarks
If you must derive a type from the specified union or enumeration, change the union or enumeration to a class or structure.
Example
The following example generates C2569:
// C2569.cpp
// compile with: /c
union ubase {};
class cHasPubUBase : public ubase {}; // C2569
// OK
struct sbase {};
class cHasPubUBase : public sbase {};