From Jason Turner

[over.ics.user]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpg9_9ebij/{from.md → to.md} +15 -15
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
- [[class.conv]]) followed by a second standard conversion sequence. If
6
- the user-defined conversion is specified by a constructor (
7
- [[class.conv.ctor]]), the initial standard conversion sequence converts
8
- the source type to the type required by the argument of the constructor.
9
- If the user-defined conversion is specified by a conversion function (
10
- [[class.conv.fct]]), the initial standard conversion sequence converts
11
- the source type to the implicit object parameter of the conversion
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. Since an
16
- implicit conversion sequence is an initialization, the special rules for
17
- initialization by user-defined conversion apply when selecting the best
18
- user-defined conversion for a user-defined conversion sequence (see 
19
- [[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
 
 
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