08-02-2009, 08:41 AM
Is it possible to improve Rule 6.5 "A signed bit field of 1 bit length is not useful". Unlike the other rules, this doesn't actually advise/recommend any behaviour or give any insight as to what compilers may or may not do when presented with this.
How about - following the same outline structure of the following rule 7.1, something like:
A signed bit field of 1 bit length is treated as ...
There is a danger of ...
They are problematic when ...
It is better not to use signed bit fields of 1 bit length use ...
Jonathan
How about - following the same outline structure of the following rule 7.1, something like:
A signed bit field of 1 bit length is treated as ...
There is a danger of ...
They are problematic when ...
It is better not to use signed bit fields of 1 bit length use ...
Jonathan
<t></t>