Follow Us
Contribute
  • Register
Errorbase is a collaborative writing project, that aims to build the largest trouble-shooting guide about all kinds of error messages.

Categories

+1 vote

Bit fields can have zero width only if unnamed. Ex:

// compile with: /c
struct C {
   int i : 0;   // C2149
};

requested by (170k points)
edited by

1 Solution

0 votes

Possible resolution:

// compile with: /c
struct C {
   int i : 2;
};

solved by (170k points)
edited by
...