From a05758b1bbe42d90df807762873c5b840997c392 Mon Sep 17 00:00:00 2001 From: Alisdair Meredith Date: Wed, 15 Jan 2025 14:01:10 -0500 Subject: [PATCH] [over.ass] Update the remaining problematic stable label --- source/classes.tex | 6 +++--- source/expressions.tex | 2 +- source/overloading.tex | 6 +++--- source/xrefdelta.tex | 1 + 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/source/classes.tex b/source/classes.tex index 87202a0341..935e0011b7 100644 --- a/source/classes.tex +++ b/source/classes.tex @@ -150,7 +150,7 @@ \pnum \begin{note} -Class objects can be assigned\iref{over.ass,class.copy.assign}, +Class objects can be assigned\iref{over.assign,class.copy.assign}, passed as arguments to functions\iref{dcl.init,class.copy.ctor}, and returned by functions (except objects of classes for which copying or moving has been restricted; see~\ref{dcl.fct.def.delete} and \ref{class.access}). @@ -1804,7 +1804,7 @@ Because a copy/move assignment operator is implicitly declared for a class if not declared by the user, a base class copy/move assignment operator is always hidden -by the corresponding assignment operator of a derived class\iref{over.ass}. +by the corresponding assignment operator of a derived class\iref{over.assign}. \begin{note} A \grammarterm{using-declaration} in a derived class \tcode{C} that names an assignment operator from a base class @@ -5223,7 +5223,7 @@ \end{example} \begin{note} \indextext{initialization!overloaded assignment and}% -Overloading of the assignment operator\iref{over.ass} +Overloading of the assignment operator\iref{over.assign} has no effect on initialization. \end{note} diff --git a/source/expressions.tex b/source/expressions.tex index c11a7a22ef..223f656b8b 100644 --- a/source/expressions.tex +++ b/source/expressions.tex @@ -7413,7 +7413,7 @@ \item an assignment to an object of class type, in which case $B$ is passed as the argument to the assignment operator function selected by -overload resolution\iref{over.ass,over.match}. +overload resolution\iref{over.assign,over.match}. \end{itemize} \begin{example} diff --git a/source/overloading.tex b/source/overloading.tex index 0aaf4edfe5..8be8b8fadb 100644 --- a/source/overloading.tex +++ b/source/overloading.tex @@ -676,7 +676,7 @@ \hdstyle{Subclause} & \hdstyle{Expression} & \hdstyle{As member function} & \hdstyle{As non-member function} \\ \capsep \ref{over.unary} & \tcode{@a} & \tcode{(a).\keyword{operator}@ (\,)} & \tcode{\keyword{operator}@(a)} \\ \ref{over.binary} & \tcode{a@b} & \tcode{(a).\keyword{operator}@ (b)} & \tcode{\keyword{operator}@(a, b)} \\ -\ref{over.ass} & \tcode{a=b} & \tcode{(a).\keyword{operator}= (b)} & \\ +\ref{over.assign} & \tcode{a=b} & \tcode{(a).\keyword{operator}= (b)} & \\ \ref{over.sub} & \tcode{a[b]} & \tcode{(a).\keyword{operator}[](b)} & \\ \ref{over.ref} & \tcode{a->} & \tcode{(a).\keyword{operator}->(\,)} & \\ \ref{over.inc} & \tcode{a@} & \tcode{(a).\keyword{operator}@ (0)} & \tcode{\keyword{operator}@(a, 0)} \\ @@ -3403,7 +3403,7 @@ described in the rest of \ref{over.oper}. \pnum -Operators not mentioned explicitly in subclauses~\ref{over.ass} through~\ref{over.inc} +Operators not mentioned explicitly in subclauses~\ref{over.assign} through~\ref{over.inc} act as ordinary unary and binary operators obeying the rules of~\ref{over.unary} or~\ref{over.binary}.% \indextext{overloading!resolution!best viable function|)}% @@ -3484,7 +3484,7 @@ a relational operator function, or a three-way comparison operator function. -\rSec3[over.ass]{Simple assignment} +\rSec3[over.assign]{Simple assignment} \indextext{assignment operator!overloaded}% \indextext{overloading!assignment operator} diff --git a/source/xrefdelta.tex b/source/xrefdelta.tex index 4b2e671ddf..cf2852c3d3 100644 --- a/source/xrefdelta.tex +++ b/source/xrefdelta.tex @@ -103,6 +103,7 @@ % https://github.com/cplusplus/draft/pull/7524 \movedxref{expr.ass}{expr.assign} +\movedxref{over.ass}{over.assign} %%% Deprecated features. %%% Example: