Export (0) Print
Expand All
Expand Minimize

Compiler Error C2531

Error Message

'identifier' : reference to a bit field illegal

References to bit fields are not allowed.

The following sample generates C2531:

// C2531.cpp
// compile with: /c
class P {
   int &b1 : 10;   // C2531
   int b2 : 10;   // OK
};

Community Additions

ADD
Show:
© 2014 Microsoft