03-09-2024, 07:49 AM
(02-09-2024, 02:12 PM)misra cpp Wrote: The problem with your example is that it already violates 10.2.3, so the question of whether it violates this rule as well is moot.
Fair enough. However, one could think of receiving said enum from an external C library, where we don't have control over how that enum is created. Wouldn't it still make sense to be defensive about those types of errors?