File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1001
1001
or default-initialized\iref {dcl.init },
1002
1002
overload resolution selects the constructor.
1003
1003
For direct-initialization or default-initialization
1004
- that is not in the context of copy-initialization, the
1005
- candidate functions are
1004
+ (including default-initialization in the context of copy-list- initialization),
1005
+ the candidate functions are
1006
1006
all the constructors of the class of the object being
1007
1007
initialized.
1008
- For copy-initialization (including default initialization
1009
- in the context of copy-initialization), the candidate functions are all
1008
+ Otherwise, the candidate functions are all
1010
1009
the converting constructors\iref {class.conv.ctor } of that
1011
1010
class.
1012
1011
The argument list is the
1013
1012
\grammarterm {expression-list} or \grammarterm {assignment-expression}
1014
1013
of the \grammarterm {initializer}.
1014
+ For default-initialization in the context of copy-list-initialization,
1015
+ if an explicit constructor is chosen, the initialization is ill-formed.
1015
1016
1016
1017
\rSec 3[over.match.copy]{Copy-initialization of class by user-defined conversion}%
1017
1018
\indextext {overloading!resolution!initialization}
You can’t perform that action at this time.
0 commit comments