Movatterモバイル変換


[0]ホーム

URL:


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

2025-12-20


1355. Aggregates and “user-provided” constructors

Section:9.6.2  [dcl.fct.def.default]    Status:CD3    Submitter:Sean Hunt    Date:2011-08-16

[Voted into the WP at the February, 2012 meeting;moved to DR at the October, 2012 meeting.]

The definition of “user-provided” given in9.6.2 [dcl.fct.def.default] paragraph 4 applies only to specialmember functions, while the definition of an aggregate in9.5.2 [dcl.init.aggr] paragraph 1 relies on that term inidentifying constructors that make a class a non-aggregate. Asa result, a class with a non-special constructor is consideredan aggregate.

Proposed resolution (August, 2011):

Change 9.6.2 [dcl.fct.def.default] paragraph 4 as follows:

Aspecial member function is user-provided if it isuser-declared and not explicitly defaulted or deleted on its firstdeclaration...

[Drafting note: This makes a class with only a deletedinitializer-list constructor an aggregate.]




[8]ページ先頭

©2009-2026 Movatter.jp