Skip to content

Commit acee208

Browse files
authored
[class.protected] Change "naming class" to "designating class" (#8251)
The term was changed to "designating class" by P2996 (https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p2996r13.html#pnum_397), and these remaining uses had not been updated accordingly.
1 parent 7409cb0 commit acee208

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
@@ -5180,7 +5180,7 @@
51805180
\pnum
51815181
An additional access check beyond those described earlier in \ref{class.access}
51825182
is applied when a non-static data member or non-static member function is a
5183-
protected member of its naming class\iref{class.access.base}.
5183+
protected member of its designating class\iref{class.access.base}.
51845184
\begin{footnote}
51855185
This
51865186
additional check does not apply to other members,
@@ -5213,10 +5213,10 @@
52135213
pb->i = 1; // error
52145214
p1->i = 2; // error
52155215
p2->i = 3; // OK (access through a \tcode{D2})
5216-
p2->B::i = 4; // OK (access through a \tcode{D2}, even though naming class is \tcode{B})
5216+
p2->B::i = 4; // OK (access through a \tcode{D2}, even though designating class is \tcode{B})
52175217
int B::* pmi_B = &B::i; // error
52185218
int B::* pmi_B2 = &D2::i; // OK (type of \tcode{\&D2::i} is \tcode{int B::*})
5219-
B::j = 5; // error: not a friend of naming class \tcode{B}
5219+
B::j = 5; // error: not a friend of designating class \tcode{B}
52205220
D2::j = 6; // OK (because refers to static member)
52215221
}
52225222

0 commit comments

Comments
 (0)