Should I use bit fields? - C++ Forum - cplusplus.com - The C++ Resources Network
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 union mask_t { typedef uint16_t mask_sz_t; struct bits_t { mask_sz_t inst_type : 1, // 1. 0x0001: inst has a type under : 1, // 2. 0x0002: inst has an ......