Title
Library Issue 306 Goes Too Far
Status
cd1
Section
[support.types]
Submitter
Pete Becker

Created on 2004-01-15.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Change 18.1, paragraph 5, to:

The macro offsetof accepts a restricted set of type arguments in this International Standard. If type is not a POD structure or a POD union the results are undefined. The result of applying the offsetof macro to a field that is a static data member or a function member is undefined."

Date: 2004-01-15.00:00:00

Original text:

The macro offsetof accepts a restricted set of type arguments in this International Standard. type shall be a POD structure or a POD union (clause 9). The result of applying the offsetof macro to a field that is a static data member or a function member is undefined."

Revised text:

"If type is not a POD structure or a POD union the results are undefined."

Looks to me like the revised text should have replaced only the second sentence. It doesn't make sense standing alone.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2673
2004-01-15 00:00:00admincreate