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 51805180\pnum
51815181An additional access check beyond those described earlier in \ref {class.access }
51825182is 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 }
51855185This
51865186additional check does not apply to other members,
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
You can’t perform that action at this time.
0 commit comments