Skip to content

Commit

Permalink
argument expressions to ranges::swap reference, rather than denote, o…
Browse files Browse the repository at this point in the history
…bjects

Fixes #306.
  • Loading branch information
CaseyCarter committed Mar 9, 2017
1 parent 3bcd694 commit 6d2ff48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utilities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
\end{codeblock}
and does not include a declaration of \tcode{ranges::swap}.
If the function selected by overload resolution does not
exchange the values denoted by \tcode{E1} and \tcode{E2},
exchange the values referenced by \tcode{E1} and \tcode{E2},
the program is ill-formed with no diagnostic required.

\item
Expand All @@ -124,7 +124,7 @@
Otherwise, if \tcode{E1} and \tcode{E2} are lvalues of the
same type \tcode{T} which meets the syntactic requirements of
\tcode{MoveConstructible<T>()} and
\tcode{Assignable<T\&, T>()}, exchanges the denoted values.
\tcode{Assignable<T\&, T>()}, exchanges the referenced values.
\tcode{ranges::swap(E1, E2)} is a constant expression if
the constructor selected by overload resolution for
\tcode{T\{std::move(E1)\}} is a constexpr constructor and
Expand All @@ -142,7 +142,7 @@

\pnum
\remark Whenever \tcode{ranges::swap(E1, E2)} is a valid
expression, it exchanges the values denoted by \tcode{E1}
expression, it exchanges the values referenced by \tcode{E1}
and \tcode{E2} and has type \tcode{void}.

\rSec2[utility.exchange]{\tcode{exchange}}
Expand Down

0 comments on commit 6d2ff48

Please sign in to comment.