Skip to content

Commit 12440ca

Browse files
danratkoeppe
authored andcommitted
[concept.swappable] Add note explaining why swap poison pill is still needed
1 parent 12c97c5 commit 12440ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/concepts.tex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,11 @@
620620
exchange the values denoted by
621621
\tcode{E1} and \tcode{E2},
622622
the program is ill-formed, no diagnostic required.
623+
\begin{note}
624+
This precludes calling unconstrained program-defined overloads of
625+
\tcode{swap}. When the deleted overload is viable, program-defined overloads
626+
need to be more specialized\iref{temp.func.order} to be selected.
627+
\end{note}
623628

624629
\item
625630
Otherwise, if \tcode{E1} and \tcode{E2}

0 commit comments

Comments
 (0)