c++ Programming Glossary: my_fields
Can an enum class be converted to the underlying type? http://stackoverflow.com/questions/14589417/can-an-enum-class-be-converted-to-the-underlying-type this would be automatic but apparently not. enum class my_fields unsigned field 1 unsigned a my_fields field That assignment.. not. enum class my_fields unsigned field 1 unsigned a my_fields field That assignment is being rejected by GCC. error cannot.. assignment is being rejected by GCC. error cannot convert 'my_fields' to 'unsigned int' in assignment . c c 11 share improve this..
|