Skip to content

[over.match.oper] Add a note for conversions on synthesized candidates. #1927

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions source/overloading.tex
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@
functions to be resolved against the same argument list.
So that argument and parameter lists are comparable within this
heterogeneous set, a member function is considered to have an
extra parameter, called the
extra first parameter, called the
\defn{implicit object parameter},
which represents the object for which the member function has been
called.
Expand All @@ -509,13 +509,8 @@
Similarly, when appropriate, the context can construct an
argument list that contains an
\defn{implied object argument}
to denote
as the first argument in the list to denote
the object to be operated on.
Since arguments and parameters are
associated by position within their respective lists, the
convention is that the implicit object parameter, if present, is
always the first parameter and the implied object argument, if
present, is always the first argument.

\pnum
For non-static member functions, the type of the implicit object
Expand Down Expand Up @@ -1089,6 +1084,11 @@
synthesized \tcode{operator<=>} candidates
are not considered for the recursive lookups.
\end{itemize}
\begin{note}
A candidate synthesized from a member candidate has its implicit
object parameter as the second parameter, thus implicit conversions
are considered for the first, but not for the second, parameter.
\end{note}

\pnum
The argument list contains all of the
Expand Down