Aracılığıyla paylaş


Derleyici Hatası C2034

'identifier' : bit sayısı için çok küçük bit alanı türü

Remarks

Bit alanı bildirimindeki bit sayısı, temel türün boyutunu aşıyor.

Example

Aşağıdaki örnek C2034 oluşturur:

// C2034.cpp
struct A {
   char test : 9;   // C2034, char has 8 bits
};

Possible resolution:

// C2034b.cpp
// compile with: /c
struct A {
   char test : 8;
};