Skip to content

Commit 3d711d3

Browse files
burblebeetkoeppe
authored andcommitted
CWG2519 Object representation of a bit-field
1 parent 3c75a4e commit 3d711d3

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

source/basic.tex

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4637,15 +4637,28 @@
46374637
\pnum
46384638
\label{term.object.representation}%
46394639
The \defnx{object representation}{representation!object}
4640-
of an object of type \tcode{T} is the
4640+
of a complete object type \tcode{T} is the
46414641
sequence of \placeholder{N} \tcode{\keyword{unsigned} \keyword{char}} objects taken up
4642-
by the object of type \tcode{T}, where \placeholder{N} equals
4642+
by a non-bit-field complete object of type \tcode{T},
4643+
where \placeholder{N} equals
46434644
\tcode{\keyword{sizeof}(T)}.
46444645
The \defnx{value representation}{representation!value}
4645-
of an object of type \tcode{T} is the set of bits
4646+
of a type \tcode{T} is the set of bits
4647+
in the object representation of \tcode{T}
46464648
that participate in representing a value of type \tcode{T}.
4649+
The object and value representation of
4650+
a non-bit-field complete object of type \tcode{T} are
4651+
the bytes and bits, respectively, of
4652+
the object corresponding to the object and value representation of its type.
4653+
The object representation of a bit-field object is
4654+
the sequence of \placeholder{N} bits taken up by the object,
4655+
where \placeholder{N} is the width of the bit-field\iref{class.bit}.
4656+
The value representation of a bit-field object is
4657+
the set of bits in the object representation that
4658+
participate in representing its value.
46474659
\label{term.padding.bits}%
4648-
Bits in the object representation that are not part of the value representation
4660+
Bits in the object representation of a type or object that are
4661+
not part of the value representation
46494662
are \defn{padding bits}.
46504663
For trivially copyable types, the value representation is
46514664
a set of bits in the object representation that determines a

0 commit comments

Comments
 (0)