This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 117b. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-08-11
2830. Top-level cv-qualification should be ignored for list-initializationSection: 9.5.5 [dcl.init.list] Status: DRWP Submitter: Krystian Stasiowski Date: 2019-11-19[Accepted as a DR at the March, 2024 meeting.]
(From editorial issue 3492.)
Subclause 9.5.5 [dcl.init.list] paragraph 3 specifies:
List-initialization of an object or reference of type T is defined as follows:
- ...
Top-level cv-qualifiers should be ignored when comparing T to other types, e.g. in 9.5.5 [dcl.init.list] bullet 3.2.
Proposed resolution (approved by CWG 2024-01-19):
Change in 9.5.5 [dcl.init.list] paragraph 3 as follows:
List-initialization of an object or reference of type cvT is defined as follows:
- ...
- If T is an aggregate class and the initializer list has a single element of type cv cv1U, where U is T or a class derived from T, the object is initialized from that element (by copy-initialization for copy-list-initialization, or by direct-initialization for direct-list-initialization).
- ...
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4