05-10-2015, 02:05 PM
The rule is correct. The rationale for 7-5-2 states:
Quote:Additionally, other rules in this standard assume that objects of enum type only contain values corresponding to the enumerators. This rule ensures the validity of these assumptions.
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group