struct and union - C++ Forum - cplusplus.com - The C++ Resources Network
As yet, no one has mentioned that the thing the OP is trying to do is dangerous. The order of bitfields in a structure, in both C and C++, is (you'd better sit down) not defined. That's right, upgrade your compiler and your program could break. The whole ...