tmp/tmpgeivz305/{from.md → to.md}
RENAMED
|
@@ -2,13 +2,14 @@
|
|
| 2 |
|
| 3 |
When objects of class type are direct-initialized [[dcl.init]],
|
| 4 |
copy-initialized from an expression of the same or a derived class type
|
| 5 |
[[dcl.init]], or default-initialized [[dcl.init]], overload resolution
|
| 6 |
selects the constructor. For direct-initialization or
|
| 7 |
-
default-initialization
|
| 8 |
-
copy-initialization, the candidate functions are all the
|
| 9 |
-
the class of the object being initialized.
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
| 14 |
|
|
|
|
| 2 |
|
| 3 |
When objects of class type are direct-initialized [[dcl.init]],
|
| 4 |
copy-initialized from an expression of the same or a derived class type
|
| 5 |
[[dcl.init]], or default-initialized [[dcl.init]], overload resolution
|
| 6 |
selects the constructor. For direct-initialization or
|
| 7 |
+
default-initialization (including default-initialization in the context
|
| 8 |
+
of copy-list-initialization), the candidate functions are all the
|
| 9 |
+
constructors of the class of the object being initialized. Otherwise,
|
| 10 |
+
the candidate functions are all the non-explicit constructors
|
| 11 |
+
[[class.conv.ctor]] of that class. The argument list is the
|
| 12 |
+
*expression-list* or *assignment-expression* of the *initializer*. For
|
| 13 |
+
default-initialization in the context of copy-list-initialization, if an
|
| 14 |
+
explicit constructor is chosen, the initialization is ill-formed.
|
| 15 |
|