This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 112e. See for the official list.


1334. Layout compatibility and cv-qualification

Section: 6.8  [basic.types]     Status: NAD     Submitter: Daniel Krügler     Date: 2011-06-23

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

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.