06-06-2025, 02:55 PM
We agree about the need to balance the two risks, and these were considered when we were drafting the rule.
We've made a note to revisit the discussion, particularly whether enums can be categorised as symbolic (only the defined members expected to be used) or numeric (the arithmetic value of members expected to be used in expressions), and whether that distinction should modify the rule.
We've made a note to revisit the discussion, particularly whether enums can be categorised as symbolic (only the defined members expected to be used) or numeric (the arithmetic value of members expected to be used in expressions), and whether that distinction should modify the rule.
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group