Last active
November 16, 2015 13:17
-
-
Save sgkim126/fbc657eabe3e207b2aa9 to your computer and use it in GitHub Desktop.
c++ enum lass example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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