Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
'identifier' : type of bit field too small for number of bits
Remarks
The number of bits in the bit-field declaration exceeds the size of the base type.
Example
The following example generates C2034:
// C2034.cpp
struct A {
char test : 9; // C2034, char has 8 bits
};
Possible resolution:
// C2034b.cpp
// compile with: /c
struct A {
char test : 8;
};