How to detect whether a struct’s member is a bit-field at compile time in C++?
Given a struct S: struct S { bool a : 1; bool b : 1; }; How to determine that S::a and S::b are bit-fields at compile time? I was trying to come up a macro like IsBitField(S, a) but had hard time …