hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.5K
active users

Šimon Tóth

Unscoped enumerations are simple types that introduce named constants into the scope enclosing the enumeration.

The backing type is automatically selected by the compiler unless explicitly specified.

Note that C++11 Scoped Enumerations are generally preferable (scheduled for tomorrow).

Compiler Explorer link: compiler-explorer.com/z/a3cP7T

@simontoth It's worse on Impossible, clang is IF, MSVC picks int, and gcc does __int128.

@beached_whale MSVC picks int? Does it at least have a warning?