|Synopsis:||Do not use bit-fields|
|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.