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

2024-03-20


1272. Implicit definition of static data member of const literal type

Section: 11.4.9.3  [class.static.data]     Status: NAD     Submitter: Nikolay Ivchenkov     Date: 2011-03-18

The Standard requires that a const static data member that is initialized in the class definition must still be defined in namespace scope if it is odr-used. This seems unnecessary.

Rationale (August, 2011):

This is a request for an extension.

Additional note, April, 2015:

EWG has decided not to make a change in this area. See EWG issue 100.