File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5183
5183
\pnum
5184
5184
An additional access check beyond those described earlier in \ref {class.access }
5185
5185
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 }.
5187
5187
\begin {footnote }
5188
5188
This
5189
5189
additional check does not apply to other members,
5216
5216
pb->i = 1; // error
5217
5217
p1->i = 2; // error
5218
5218
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})
5220
5220
int B::* pmi_B = &B::i; // error
5221
5221
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}
5223
5223
D2::j = 6; // OK (because refers to static member)
5224
5224
}
5225
5225
You can’t perform that action at this time.
0 commit comments