tmp/tmpmn357bhn/{from.md → to.md}
RENAMED
|
@@ -2,30 +2,27 @@
|
|
| 2 |
|
| 3 |
Under the conditions specified in [[dcl.init.ref]], a reference can be
|
| 4 |
bound directly to the result of applying a conversion function to an
|
| 5 |
initializer expression. Overload resolution is used to select the
|
| 6 |
conversion function to be invoked. Assuming that “reference to *cv1*
|
| 7 |
-
`T`” is the type of the reference being initialized,
|
| 8 |
-
type of the initializer expression, with `S` a class type, the candidate
|
| 9 |
functions are selected as follows:
|
| 10 |
|
| 11 |
-
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
functions
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
type `T` with a qualification conversion [[conv.qual]], are also
|
| 25 |
-
candidate functions.
|
| 26 |
|
| 27 |
The argument list has one argument, which is the initializer expression.
|
| 28 |
|
| 29 |
-
[*Note 1*: This argument will be compared against the
|
| 30 |
-
|
| 31 |
|
|
|
|
| 2 |
|
| 3 |
Under the conditions specified in [[dcl.init.ref]], a reference can be
|
| 4 |
bound directly to the result of applying a conversion function to an
|
| 5 |
initializer expression. Overload resolution is used to select the
|
| 6 |
conversion function to be invoked. Assuming that “reference to *cv1*
|
| 7 |
+
`T`” is the type of the reference being initialized, the candidate
|
|
|
|
| 8 |
functions are selected as follows:
|
| 9 |
|
| 10 |
+
- Let R be a set of types including
|
| 11 |
+
- “lvalue reference to *cv2* `T2`” (when initializing an lvalue
|
| 12 |
+
reference or an rvalue reference to function) and
|
| 13 |
+
- “*cv2* `T2`” and “rvalue reference to *cv2* `T2`” (when initializing
|
| 14 |
+
an rvalue reference or an lvalue reference to function)
|
| 15 |
+
|
| 16 |
+
for any `T2`. The permissible types for non-explicit conversion
|
| 17 |
+
functions are the members of R where “*cv1* `T`” is
|
| 18 |
+
reference-compatible [[dcl.init.ref]] with “*cv2* `T2`”. For
|
| 19 |
+
direct-initialization, the permissible types for explicit conversion
|
| 20 |
+
functions are the members of R where `T2` can be converted to type `T`
|
| 21 |
+
with a (possibly trivial) qualification conversion [[conv.qual]];
|
| 22 |
+
otherwise there are none.
|
|
|
|
|
|
|
| 23 |
|
| 24 |
The argument list has one argument, which is the initializer expression.
|
| 25 |
|
| 26 |
+
[*Note 1*: This argument will be compared against the object parameter
|
| 27 |
+
of the conversion functions. — *end note*]
|
| 28 |
|