Skip to content

Instantly share code, notes, and snippets.

@sgkim126
Last active November 16, 2015 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgkim126/fbc657eabe3e207b2aa9 to your computer and use it in GitHub Desktop.
Save sgkim126/fbc657eabe3e207b2aa9 to your computer and use it in GitHub Desktop.
c++ enum lass example
enum class Flag {
Flag1 = 0x7FFFFFFF,
Flag2, //enumerator value 2147483648u is outside the range of underlying type ‘int’
Flag3 = 0xFFFFFFFF // error: enumerator value 4294967295u is outside the range of underlying type ‘int’
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment