Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
9.4.2 - Why C-style enums are exempted from requiring a default clause?
#3
(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?
Reply


Messages In This Thread
RE: 9.4.2 - Why C-style enums are exempted from requiring a default clause? - by cgpzs - 03-09-2024, 07:49 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)