[EMCpp]Item-10 Prefer Scoped enums to Unscopded enums
· ☕ 4 min read
Enumerators of scoped enum
s are visible only within the enum
, convert to other types only with a cast, and always support forward-declared because their default underlying type is int
.