File tree Expand file tree Collapse file tree 2 files changed +12
-16
lines changed Expand file tree Collapse file tree 2 files changed +12
-16
lines changed Original file line number Diff line number Diff line change 4760
4760
\end {example }
4761
4761
\end {itemize }
4762
4762
4763
- \pnum
4764
- If a class member access operator, including an implicit
4765
- `` \tcode {this->}'' ,
4766
- is used to access a non-static data member or non-static
4767
- member function, the reference is ill-formed if the
4768
- left operand is of type `` pointer to \cv {}~\tcode {D}'' (or \cv {}~\tcode {D}
4769
- in the `` \tcode {.}'' operator case), the naming class of the right operand is
4770
- \cv {}~\tcode {B}, and a prvalue of type `` pointer to \tcode {D}'' cannot be
4771
- implicitly converted to `` pointer to \tcode {B}'' .
4772
- \begin {note }
4773
- This requirement is in addition to the requirement that
4774
- the member be accessible as named.
4775
- \end {note }
4776
-
4777
4763
\rSec 2[class.friend]{Friends}%
4778
4764
\indextext {friend function!access and}%
4779
4765
\indextext {access control!friend function}
Original file line number Diff line number Diff line change 3636
3636
whose value is the value of the enumerator.
3637
3637
\end {itemize }
3638
3638
3639
+ \pnum
3640
+ If \tcode {E1} is of type \cv ~\tcode {D} and the naming
3641
+ class\iref {class.access.base } of \tcode {E2} is \cv ~\tcode {B}, the program is
3642
+ ill-formed if a prvalue of type `` pointer to \tcode {D}'' cannot be
3643
+ implicitly converted to `` pointer to \tcode {B}'' .
3644
+ \begin {note }
3645
+ This requirement is in addition to the requirement that
3646
+ the member be accessible as named.
3647
+ \end {note }
3648
+
3639
3649
\pnum
3640
3650
If \tcode {E2} is a non-static member,
3641
3651
the program is ill-formed if the class of which \tcode {E2} is
3642
3652
directly a member is an ambiguous base\iref {class.member.lookup } of
3643
- the naming class\iref { class.access.base } of \tcode {E2}.
3653
+ the naming class of \tcode {E2}.
3644
3654
\begin {note }
3645
3655
The program is also ill-formed if the naming class is an ambiguous base of the class type
3646
- of the object expression; see~ \ref { class.access.base } .
3656
+ of the object expression.
3647
3657
\end {note }
3648
3658
3649
3659
\pnum
You can’t perform that action at this time.
0 commit comments