Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: minor editorial changes

...

This compliant solution uses a scoped enumeration, which has a fixed underlying int type of type int by default, allowing any value from the parameter to be converted into a valid enumeration value. It does not restrict the converted value to one for which there is a specific enumerator value, but it could do so as shown in the previous compliant solution.

...

Similar to the previous compliant solution, this compliant solution uses an unscoped enumeration but provides a fixed underlying int type of type int, allowing any value from the parameter to be converted to a valid enumeration value.

...