Title
Layout compatibility and cv-qualification
Status
nad
Section
6.8 [basic.types]
Submitter
Daniel Krügler

Created on 2011-06-23.00:00:00 last changed 148 months ago

Messages

Date: 2011-08-15.00:00:00

Rationale (August, 2011):

The purpose of “layout compatible” types in C++ is for C compatibility with respect to the common initial sequence of structs appearing in unions. However, C requires that corresponding members have compatible types, and compatible types must have the same cv-qualification. Consequently, this issue is not a defect.

Date: 2022-11-20.07:54:16

Should cv-qualified and cv-unqualified versions of fundamental types be considered to be layout-compatible types?

History
Date User Action Args
2012-09-24 00:00:00adminsetmessages: + msg4020
2011-06-23 00:00:00admincreate