TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
C++ Coding Standard

Rule:  PCA#011Checked automatically with code checker

Synopsis:Do not use bit-fields
Severity Level:5
Category:Parts of C++ to Avoid


If breaking this rule is necessary, one must be very well aware of the undefined properties of bit-fields, and provide adequate documentation. In general, prevent to rely on the exact memory layout of objects: see also [POR#020]. When the purpose is to manipulate a set of a number of bits, then the std::bitset class template is a better alternative.