Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions source/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5183,7 +5183,7 @@
\pnum
An additional access check beyond those described earlier in \ref{class.access}
is applied when a non-static data member or non-static member function is a
protected member of its naming class\iref{class.access.base}.
protected member of its designating class\iref{class.access.base}.
\begin{footnote}
This
additional check does not apply to other members,
Expand Down Expand Up @@ -5216,10 +5216,10 @@
pb->i = 1; // error
p1->i = 2; // error
p2->i = 3; // OK (access through a \tcode{D2})
p2->B::i = 4; // OK (access through a \tcode{D2}, even though naming class is \tcode{B})
p2->B::i = 4; // OK (access through a \tcode{D2}, even though designating class is \tcode{B})
int B::* pmi_B = &B::i; // error
int B::* pmi_B2 = &D2::i; // OK (type of \tcode{\&D2::i} is \tcode{int B::*})
B::j = 5; // error: not a friend of naming class \tcode{B}
B::j = 5; // error: not a friend of designating class \tcode{B}
D2::j = 6; // OK (because refers to static member)
}

Expand Down