[Qt-interest] Question about bitfields
Dan White
ygor at comcast.net
Fri Jul 16 15:26:39 CEST 2010
Yes, that is how it should work, but I was looking to see if Qt offered anything more.
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)
----- Ian Thomson <Ian.Thomson at iongeo.com> wrote:
> 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.
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list