I have a class with a member of type uint8, and when I try to output it to ostream, it displays it as a char. I would prefer this int representation, so I need static_cast (myStruct.member) to be a little cumbersome and potentially error-prone each time. Any ideas?
source
share