RAD Studio
ContentsIndex
PreviousUpNext
E2116: Bit fields must contain at least one bit (C++)

You can't declare a named bit field to have 0 (or less than 0) bits. 

You can declare an unnamed bit field to have 0 bits. 

This is a convention used to force alignment of the following bit field to a byte boundary (or to a word boundary.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!