Title
offsetof should be marked noexcept
Status
c++11
Section
[support.types]
Submitter
BSI

Created on 2010-08-25.00:00:00 last changed 161 months ago

Messages

Date: 2010-10-24.22:33:31

Proposed resolution:

Add to the end of 18.2p4:

No operation invoked by the offsetof macro shall throw an exception, and noexcept(offsetof(type,member-designator)) shall be true.

Date: 2010-10-24.10:50:39

[ Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102. ]

Date: 2010-10-24.10:50:39

Addresses GB-68

There is no reason for the offsetof macro to invoke potentially throwing operations, so the result of noexcept(offsetof(type,member-designator)) should be true.

History
Date User Action Args
2011-08-23 20:07:26adminsetstatus: wp -> c++11
2010-10-24 10:50:39adminsetmessages: + msg4993
2010-10-24 10:50:39adminsetstatus: nad editorial -> wp
2010-10-21 19:47:27adminsetmessages: + msg4783
2010-08-25 00:00:00admincreate