Hi All,
Is there any sane way to implement structure bitfields similar to C. ?
//sizeof(abc) is 4 bytes though it has 3 ints..
struct abc
{
unsigned int a : 4;
unsigned int b : 24;
unsigned int c : 4;
};
I was thinking of defining bit masks for individual members. But wanted to check if there are other elegant ways.
Thanks,
Mathi.