Is it possible to deduce from the enumeration, if so, how?
For example:
enum eStandardTypes { Type1 = 0, Type2, Unknown, Count, }; enum eExtendedTypes : eStandardTypes { Type3 = eStandardTypes::Count, Unknown, Count, };
No, this is not possible, even with classes enum .
enum
Support for class inheritance was enum discussed for C ++ 17 but was not included in this standard.