You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, "n" will not have the expected value (something out of range of the enum values), instead will get the value BSDL_METADATA_DATA_INVALID, which is well within the range of the enum values.
I suspect this could be fixed in several ways:
document the intended usage of MU_ENUM_VALUE_COUNT.
"magically" make the construct fail at compile time
Best Regards,
Andrei Porumb
The text was updated successfully, but these errors were encountered:
Given the following enum definition:
One would reasonably write:
However, "n" will not have the expected value (something out of range of the enum values), instead will get the value
BSDL_METADATA_DATA_INVALID
, which is well within the range of the enum values.I suspect this could be fixed in several ways:
MU_ENUM_VALUE_COUNT
.Best Regards,
Andrei Porumb
The text was updated successfully, but these errors were encountered: