File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 4897
4897
\end {example }
4898
4898
\end {itemize }
4899
4899
4900
- \pnum
4901
- If a class member access operator, including an implicit
4902
- `` \tcode {this->}'' ,
4903
- is used to access a non-static data member or non-static
4904
- member function, the reference is ill-formed if the
4905
- left operand (considered as a pointer in the
4906
- `` \tcode {.}''
4907
- operator case) cannot be implicitly converted to a
4908
- pointer to the designating class of the right operand.
4909
- \begin {note }
4910
- This requirement is in addition to the requirement that
4911
- the member be accessible as designated.
4912
- \end {note }
4913
-
4914
4900
\rSec 2[class.friend]{Friends}%
4915
4901
\indextext {friend function!access and}%
4916
4902
\indextext {access control!friend function}
Original file line number Diff line number Diff line change 4338
4338
Otherwise, the program is ill-formed.
4339
4339
\end {itemize }
4340
4340
4341
+ \pnum
4342
+ Let \tcode {C} be the cv-unqualified version of the type of \tcode {E1}.
4343
+ The program is ill-formed if a prvalue of type `` pointer to \tcode {C}''
4344
+ cannot be implicitly converted to a pointer to
4345
+ the designating class\iref {class.access.base } of the right operand.
4346
+ \begin {note }
4347
+ This requirement is in addition to the requirement that
4348
+ the member be accessible as designated.
4349
+ \end {note }
4350
+
4341
4351
\pnum
4342
4352
If \tcode {E2} designates a non-static member
4343
4353
(possibly after overload resolution),
You can’t perform that action at this time.
0 commit comments