Inference from enum in C ++
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,
};
+3
Tim
source
to share
1 answer
No, this is not possible, even with classes enum
.
Support for class inheritance was enum
discussed for C ++ 17 but was not included in this standard.
+5
Bathsheba
source
to share