[Qt-interest] Question about bitfields

Ian Thomson Ian.Thomson at iongeo.com
Fri Jul 16 15:19:57 CEST 2010


Isn't this natively supported by C++?

Something like

struct MyStruct
{
   int myint : 14;
   int flagA : 1;
   int flagB : 1;
};

I can't remember if that's the exact syntax but I'm sure I've seen 
something like that in the wild. It might be a compiler extension(?)

Ian.




More information about the Qt-interest-old mailing list