From Jason Turner

[class.bit]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpt4t_e44d/{from.md → to.md} +9 -11
tmp/tmpt4t_e44d/{from.md → to.md} RENAMED
@@ -25,21 +25,19 @@ externally-imposed layouts. As a special case, an unnamed bit-field with
25
  a width of zero specifies alignment of the next bit-field at an
26
  allocation unit boundary. Only when declaring an unnamed bit-field may
27
  the value of the *constant-expression* be equal to zero.
28
 
29
  A bit-field shall not be a static member. A bit-field shall have
30
- integral or enumeration type ([[basic.fundamental]]). It is
31
- *implementation-defined* whether a plain (neither explicitly signed nor
32
- unsigned) `char`, `short`, `int`, `long`, or `long long` bit-field is
33
- signed or unsigned. A `bool` value can successfully be stored in a
34
- bit-field of any nonzero size. The address-of operator `&` shall not be
35
- applied to a bit-field, so there are no pointers to bit-fields. A
36
- non-const reference shall not be bound to a bit-field (
37
- [[dcl.init.ref]]). If the initializer for a reference of type `const`
38
- `T&` is an lvalue that refers to a bit-field, the reference is bound to
39
- a temporary initialized to hold the value of the bit-field; the
40
- reference is not bound to the bit-field directly. See  [[dcl.init.ref]].
41
 
42
  If the value `true` or `false` is stored into a bit-field of type `bool`
43
  of any size (including a one bit bit-field), the original `bool` value
44
  and the value of the bit-field shall compare equal. If the value of an
45
  enumerator is stored into a bit-field of the same enumeration type and
 
25
  a width of zero specifies alignment of the next bit-field at an
26
  allocation unit boundary. Only when declaring an unnamed bit-field may
27
  the value of the *constant-expression* be equal to zero.
28
 
29
  A bit-field shall not be a static member. A bit-field shall have
30
+ integral or enumeration type ([[basic.fundamental]]). A `bool` value
31
+ can successfully be stored in a bit-field of any nonzero size. The
32
+ address-of operator `&` shall not be applied to a bit-field, so there
33
+ are no pointers to bit-fields. A non-const reference shall not be bound
34
+ to a bit-field ([[dcl.init.ref]]). If the initializer for a reference
35
+ of type `const` `T&` is an lvalue that refers to a bit-field, the
36
+ reference is bound to a temporary initialized to hold the value of the
37
+ bit-field; the reference is not bound to the bit-field directly. See 
38
+ [[dcl.init.ref]].
 
 
39
 
40
  If the value `true` or `false` is stored into a bit-field of type `bool`
41
  of any size (including a one bit bit-field), the original `bool` value
42
  and the value of the bit-field shall compare equal. If the value of an
43
  enumerator is stored into a bit-field of the same enumeration type and