tmp/tmpduln5tc6/{from.md → to.md}
RENAMED
|
@@ -1,11 +1,13 @@
|
|
| 1 |
#### Initialization by constructor <a id="over.match.ctor">[[over.match.ctor]]</a>
|
| 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
|
| 5 |
-
type ([[dcl.init]]),
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
the candidate functions are all the
|
|
|
|
|
|
|
| 9 |
[[class.conv.ctor]]) of that class. The argument list is the
|
| 10 |
*expression-list* or *assignment-expression* of the *initializer*.
|
| 11 |
|
|
|
|
| 1 |
#### Initialization by constructor <a id="over.match.ctor">[[over.match.ctor]]</a>
|
| 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
|
| 5 |
+
type ([[dcl.init]]), or default-initialized ([[dcl.init]]), overload
|
| 6 |
+
resolution selects the constructor. For direct-initialization or
|
| 7 |
+
default-initialization that is not in the context of
|
| 8 |
+
copy-initialization, the candidate functions are all the constructors of
|
| 9 |
+
the class of the object being initialized. For copy-initialization, the
|
| 10 |
+
candidate functions are all the converting constructors (
|
| 11 |
[[class.conv.ctor]]) of that class. The argument list is the
|
| 12 |
*expression-list* or *assignment-expression* of the *initializer*.
|
| 13 |
|