Skip to content

Commit ce8565e

Browse files
AlisdairMtkoeppe
authored andcommitted
[over.assign] Rename stable label
This removes an easily avoidable vulgarity, and the original label remains as a greppable prefix of the new one.
1 parent e34e62d commit ce8565e

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

source/classes.tex

+3-3
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150

151151
\pnum
152152
\begin{note}
153-
Class objects can be assigned\iref{over.ass,class.copy.assign},
153+
Class objects can be assigned\iref{over.assign,class.copy.assign},
154154
passed as arguments to functions\iref{dcl.init,class.copy.ctor}, and
155155
returned by functions (except objects of classes for which copying or moving has
156156
been restricted; see~\ref{dcl.fct.def.delete} and \ref{class.access}).
@@ -1804,7 +1804,7 @@
18041804
Because a copy/move assignment operator is implicitly declared for a class
18051805
if not declared by the user,
18061806
a base class copy/move assignment operator is always hidden
1807-
by the corresponding assignment operator of a derived class\iref{over.ass}.
1807+
by the corresponding assignment operator of a derived class\iref{over.assign}.
18081808
\begin{note}
18091809
A \grammarterm{using-declaration} in a derived class \tcode{C}
18101810
that names an assignment operator from a base class
@@ -5223,7 +5223,7 @@
52235223
\end{example}
52245224
\begin{note}
52255225
\indextext{initialization!overloaded assignment and}%
5226-
Overloading of the assignment operator\iref{over.ass}
5226+
Overloading of the assignment operator\iref{over.assign}
52275227
has no effect on initialization.
52285228
\end{note}
52295229

source/expressions.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -7413,7 +7413,7 @@
74137413
\item
74147414
an assignment to an object of class type, in which case $B$
74157415
is passed as the argument to the assignment operator function selected by
7416-
overload resolution\iref{over.ass,over.match}.
7416+
overload resolution\iref{over.assign,over.match}.
74177417
\end{itemize}
74187418

74197419
\begin{example}

source/overloading.tex

+3-3
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@
676676
\hdstyle{Subclause} & \hdstyle{Expression} & \hdstyle{As member function} & \hdstyle{As non-member function} \\ \capsep
677677
\ref{over.unary} & \tcode{@a} & \tcode{(a).\keyword{operator}@ (\,)} & \tcode{\keyword{operator}@(a)} \\
678678
\ref{over.binary} & \tcode{a@b} & \tcode{(a).\keyword{operator}@ (b)} & \tcode{\keyword{operator}@(a, b)} \\
679-
\ref{over.ass} & \tcode{a=b} & \tcode{(a).\keyword{operator}= (b)} & \\
679+
\ref{over.assign} & \tcode{a=b} & \tcode{(a).\keyword{operator}= (b)} & \\
680680
\ref{over.sub} & \tcode{a[b]} & \tcode{(a).\keyword{operator}[](b)} & \\
681681
\ref{over.ref} & \tcode{a->} & \tcode{(a).\keyword{operator}->(\,)} & \\
682682
\ref{over.inc} & \tcode{a@} & \tcode{(a).\keyword{operator}@ (0)} & \tcode{\keyword{operator}@(a, 0)} \\
@@ -3402,7 +3402,7 @@
34023402
described in the rest of \ref{over.oper}.
34033403

34043404
\pnum
3405-
Operators not mentioned explicitly in subclauses~\ref{over.ass} through~\ref{over.inc}
3405+
Operators not mentioned explicitly in subclauses~\ref{over.assign} through~\ref{over.inc}
34063406
act as ordinary unary and binary
34073407
operators obeying the rules of~\ref{over.unary} or~\ref{over.binary}.%
34083408
\indextext{overloading!resolution!best viable function|)}%
@@ -3483,7 +3483,7 @@
34833483
a relational operator function, or
34843484
a three-way comparison operator function.
34853485

3486-
\rSec3[over.ass]{Simple assignment}
3486+
\rSec3[over.assign]{Simple assignment}
34873487
\indextext{assignment operator!overloaded}%
34883488
\indextext{overloading!assignment operator}
34893489

source/xrefdelta.tex

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103

104104
% https://github.com/cplusplus/draft/pull/7524
105105
\movedxref{expr.ass}{expr.assign}
106+
\movedxref{over.ass}{over.assign}
106107

107108
%%% Deprecated features.
108109
%%% Example:

0 commit comments

Comments
 (0)