Compiler Error C2569
'EnumOrUnion' : enum/union cannot be used as a base class
If you must derive a type from the specified union or enumeration, change the union or enumeration to a class or structure.
The following sample generates C2569:
// C2569.cpp
// compile with: /c
union ubase {};
class cHasPubUBase : public ubase {}; // C2569
// OK
struct sbase {};
class cHasPubUBase : public sbase {};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for