...
Although similar to the previous compliant solution, the previous this compliant solution differs from the noncompliant code example in the way the enumerator values are expressed in code and what which implicit conversions are allowed. The previous compliant solution requires a nested name specifier to identify the enumerator (for example, EnumType::First
) and will not implicitly convert the enumerator value to int
. As with the noncompliant code example, this compliant solution does not allow a nested name specifier and will implicitly convert the enumerator value to int
.
...