Skip to content

Commit 81ed76b

Browse files
eisenwavetkoeppe
authored andcommitted
CWG3057 Ranking of derived-to-base conversions should ignore reference binding
1 parent 7a1e977 commit 81ed76b

1 file changed

Lines changed: 3 additions & 22 deletions

File tree

source/overloading.tex

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2401,10 +2401,10 @@
24012401
binds directly\iref{dcl.init.ref} to an argument expression:
24022402
\begin{itemize}
24032403
\item
2404-
If the argument expression has a type that
2405-
is a derived class of the parameter type,
2404+
If the argument expression has a type \tcode{D} that
2405+
is a derived class of \tcode{T},
24062406
the implicit conversion sequence is a derived-to-base
2407-
conversion\iref{over.best.ics}.
2407+
conversion from \tcode{D} to \tcode{T}\iref{over.best.ics}.
24082408

24092409
\item
24102410
Otherwise,
@@ -3083,15 +3083,6 @@
30833083
\end{codeblock}
30843084
\end{example}
30853085

3086-
\item
3087-
binding of an expression of type
3088-
\tcode{C}
3089-
to a reference to type
3090-
\tcode{B}
3091-
is better than binding an expression of type
3092-
\tcode{C}
3093-
to a reference to type
3094-
\tcode{A},
30953086
\item
30963087
conversion of
30973088
\tcode{A::*}
@@ -3120,16 +3111,6 @@
31203111
to
31213112
\tcode{A*},
31223113
\item
3123-
binding of an expression of type
3124-
\tcode{B}
3125-
to a reference to type
3126-
\tcode{A}
3127-
is better than binding an expression of type
3128-
\tcode{C}
3129-
to a
3130-
reference to type
3131-
\tcode{A},
3132-
\item
31333114
conversion of
31343115
\tcode{B::*}
31353116
to

0 commit comments

Comments
 (0)