Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
M5-0-4 switch over unscoped enum without fixed underlying type
#3
Thank you for the clarification! Will report back to our supplier.

By the way, would the same rationale apply here?

Code:
std::int32_t x = ...;
x = FOO_A;        // Compliant with M5-0-4?

if (x == FOO_A)   // Compliant with M5-0-4?

In other words since `FOO_A` is of "enum type", does that mean the rule does not apply at all?
Reply


Messages In This Thread
RE: M5-0-4 switch over unscoped enum without fixed underlying type - by cgpzs - 21-09-2026, 07:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)