I have to pack some enumerations to byte array (char*) and send over network. Is possible to set default type for enum to be unsigned char? (I can now cast or use & 0xff to extract first byte/char but that requires additional operations so is there any way to solve this at definition of enum?)
I have to pack some enumerations to byte array ( char* ) and send
Share
This is only possible with C++11 strongly typed enums:
See here for more information