tmp/tmp62vblfm2/{from.md → to.md}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
#### Conversion by constructor <a id="class.conv.ctor">[[class.conv.ctor]]</a>
|
| 2 |
|
| 3 |
A constructor that is not explicit [[dcl.fct.spec]] specifies a
|
| 4 |
conversion from the types of its parameters (if any) to the type of its
|
| 5 |
-
class.
|
| 6 |
|
| 7 |
[*Example 1*:
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
struct X {
|
|
@@ -56,12 +56,5 @@ Z a6 = { 3, 4 }; // error: no implicit conversion
|
|
| 56 |
|
| 57 |
— *end example*]
|
| 58 |
|
| 59 |
— *end note*]
|
| 60 |
|
| 61 |
-
A non-explicit copy/move constructor [[class.copy.ctor]] is a converting
|
| 62 |
-
constructor.
|
| 63 |
-
|
| 64 |
-
[*Note 2*: An implicitly-declared copy/move constructor is not an
|
| 65 |
-
explicit constructor; it can be called for implicit type
|
| 66 |
-
conversions. — *end note*]
|
| 67 |
-
|
|
|
|
| 1 |
#### Conversion by constructor <a id="class.conv.ctor">[[class.conv.ctor]]</a>
|
| 2 |
|
| 3 |
A constructor that is not explicit [[dcl.fct.spec]] specifies a
|
| 4 |
conversion from the types of its parameters (if any) to the type of its
|
| 5 |
+
class.
|
| 6 |
|
| 7 |
[*Example 1*:
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
struct X {
|
|
|
|
| 56 |
|
| 57 |
— *end example*]
|
| 58 |
|
| 59 |
— *end note*]
|
| 60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|