The question is more specifically this one: How many bit-field entries can I add in a structure?
For example:
struct SMyStruct
{
unsigned int m_data1 : 3;
unsigned int m_data2 : 1;
unsigned int m_data3 : 7;
// ...
unsigned long long m_datan : 42;
};
May the total of bits exceed 32 or 64 (or whatever is the system architecture)?