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

2024-11-11


604. Argument list for overload resolution in copy-initialization

Section: 12.2.2.4  [over.match.ctor]     Status: CD2     Submitter: Dawn Perchik     Date: 4 November 2006

[Voted into WP at October, 2009 meeting.]

According to 12.2.2.4 [over.match.ctor],

When objects of class type are direct-initialized (9.4 [dcl.init]), or copy-initialized from an expression of the same or a derived class type (9.4 [dcl.init])... [the] argument list is the expression-list within the parentheses of the initializer.

However, in copy initialization (using the “=” notation), there need be no parentheses. What is the argument list in that case?

Proposed resolution (June, 2009):

Change 12.2.2.4 [over.match.ctor] paragraph 1 as follows:

...The argument list is the expression-list or assignment-expression within the parentheses of the initializer initializer.