Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'identifier' : bit field must have type 'int', 'signed int', or 'unsigned int'
Remarks
The base type for a bit-field is required to be int, signed int, or unsigned int.
Example
This example shows how you might encounter C2150, and how you can fix it:
// C2150.cpp
// compile with: /c
struct A {
   float a : 8;    // C2150
   int i : 8;      // OK
};