This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115c. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-09-25


1052. const non-static data member and PODness

Section: 11.4.5.3  [class.copy.ctor]     Status: dup     Submitter: Jason Merrill     Date: 2010-03-12

The class

    struct A {
        const int i;
    };

was previously considered a POD class, but it no longer is, because it has a non-trivial (deleted) copy assignment operator. The impact of this change is not clear.

Rationale (August, 2010):

This is a duplicate of issue 1140.