Skip to content

Commit 44918f4

Browse files
authored
Fix dangling references to "naming class"
The term was renamed "designating class" by P2996 https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p2996r13.html#pnum_397
1 parent b9d7470 commit 44918f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/classes.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5183,7 +5183,7 @@
51835183
\pnum
51845184
An additional access check beyond those described earlier in \ref{class.access}
51855185
is applied when a non-static data member or non-static member function is a
5186-
protected member of its naming class\iref{class.access.base}.
5186+
protected member of its designating class\iref{class.access.base}.
51875187
\begin{footnote}
51885188
This
51895189
additional check does not apply to other members,
@@ -5216,10 +5216,10 @@
52165216
pb->i = 1; // error
52175217
p1->i = 2; // error
52185218
p2->i = 3; // OK (access through a \tcode{D2})
5219-
p2->B::i = 4; // OK (access through a \tcode{D2}, even though naming class is \tcode{B})
5219+
p2->B::i = 4; // OK (access through a \tcode{D2}, even though designating class is \tcode{B})
52205220
int B::* pmi_B = &B::i; // error
52215221
int B::* pmi_B2 = &D2::i; // OK (type of \tcode{\&D2::i} is \tcode{int B::*})
5222-
B::j = 5; // error: not a friend of naming class \tcode{B}
5222+
B::j = 5; // error: not a friend of designating class \tcode{B}
52235223
D2::j = 6; // OK (because refers to static member)
52245224
}
52255225

0 commit comments

Comments
 (0)