Title
Array vs sequence in object representation
Status
drafting
Section
6.8 [basic.types]
Submitter
Lawrence Crowl

Created on 2013-06-14.00:00:00 last changed 122 months ago

Messages

Date: 2014-11-24.00:00:00

Additional note, November, 2014:

An additional point of concern has been raised as to whether it is appropriate to refer to the constituent bytes of an object as being “objects” themselves, along with the interaction of this specification with copying or not copying parts of the object representation that do not participate in the value representation of the object (“padding” bytes).

Date: 2013-06-14.00:00:00

According to 6.8 [basic.types] paragraph 4,

The object representation of an object of type T is the sequence of N unsigned char objects taken up by the object of type T, where N equals sizeof(T).

However, it is not clear that a “sequence” can be indexed, as an array can and as is required for the implementation of memcpy and similar code.

History
Date User Action Args
2014-11-24 00:00:00adminsetmessages: + msg5187
2013-10-14 00:00:00adminsetstatus: open -> drafting
2013-06-14 00:00:00admincreate