tmp/tmpg9_9ebij/{from.md → to.md}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
| 1 |
##### User-defined conversion sequences <a id="over.ics.user">[[over.ics.user]]</a>
|
| 2 |
|
| 3 |
-
A user-defined conversion sequence consists of an initial standard
|
| 4 |
-
conversion sequence followed by a user-defined conversion
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
function.
|
| 13 |
|
| 14 |
The second standard conversion sequence converts the result of the
|
| 15 |
-
user-defined conversion to the target type for the sequence
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
| 20 |
|
| 21 |
If the user-defined conversion is specified by a specialization of a
|
| 22 |
conversion function template, the second standard conversion sequence
|
| 23 |
shall have exact match rank.
|
| 24 |
|
|
|
|
| 1 |
##### User-defined conversion sequences <a id="over.ics.user">[[over.ics.user]]</a>
|
| 2 |
|
| 3 |
+
A *user-defined conversion sequence* consists of an initial standard
|
| 4 |
+
conversion sequence followed by a user-defined conversion [[class.conv]]
|
| 5 |
+
followed by a second standard conversion sequence. If the user-defined
|
| 6 |
+
conversion is specified by a constructor [[class.conv.ctor]], the
|
| 7 |
+
initial standard conversion sequence converts the source type to the
|
| 8 |
+
type required by the argument of the constructor. If the user-defined
|
| 9 |
+
conversion is specified by a conversion function [[class.conv.fct]], the
|
| 10 |
+
initial standard conversion sequence converts the source type to the
|
| 11 |
+
implicit object parameter of the conversion function.
|
|
|
|
| 12 |
|
| 13 |
The second standard conversion sequence converts the result of the
|
| 14 |
+
user-defined conversion to the target type for the sequence; any
|
| 15 |
+
reference binding is included in the second standard conversion
|
| 16 |
+
sequence. Since an implicit conversion sequence is an initialization,
|
| 17 |
+
the special rules for initialization by user-defined conversion apply
|
| 18 |
+
when selecting the best user-defined conversion for a user-defined
|
| 19 |
+
conversion sequence (see [[over.match.best]] and [[over.best.ics]]).
|
| 20 |
|
| 21 |
If the user-defined conversion is specified by a specialization of a
|
| 22 |
conversion function template, the second standard conversion sequence
|
| 23 |
shall have exact match rank.
|
| 24 |
|