|
5766 | 5766 |
|
5767 | 5767 | \pnum
|
5768 | 5768 | The binary operator \tcode{.*} binds its second operand, which shall be
|
5769 |
| -of type ``pointer to member of \tcode{T}'' to its first operand, which shall be |
| 5769 | +of type ``pointer to member of class \tcode{T} of type \tcode{X}'' to its first operand, which shall be |
5770 | 5770 | a glvalue
|
5771 | 5771 | of
|
5772 | 5772 | class \tcode{T} or of a class of which \tcode{T} is an unambiguous and
|
5773 |
| -accessible base class. The result is an object or a function of the type |
5774 |
| -specified by the second operand. |
| 5773 | +accessible base class. The result is an object or function of type \tcode{X}. |
5775 | 5774 |
|
5776 | 5775 | \pnum
|
5777 | 5776 | The binary operator \tcode{->*} binds its second operand, which shall be
|
5778 |
| -of type ``pointer to member of \tcode{T}'' to its first operand, which shall be of |
| 5777 | +of type ``pointer to member of class \tcode{T}'' to its first operand, which shall be of |
5779 | 5778 | type ``pointer to \tcode{U}''
|
5780 | 5779 | where \tcode{U} is either \tcode{T} or
|
5781 | 5780 | a class of which \tcode{T}
|
|
5795 | 5794 | The restrictions on cv-qualification, and the manner in which
|
5796 | 5795 | the cv-qualifiers of the operands are combined to produce the
|
5797 | 5796 | cv-qualifiers of the result, are the same as the rules for
|
5798 |
| -\tcode{E1.E2} given in~\ref{expr.ref}. |
| 5797 | +\tcode{E1.EM} given in~\ref{expr.ref}, |
| 5798 | +where \tcode{EM} is an \grammarterm{identifier} |
| 5799 | +naming a hypothetical non-static member of class \tcode{T} |
| 5800 | +declared with type \tcode{X}. |
5799 | 5801 | \begin{note}
|
5800 | 5802 | It is not possible to use a pointer to member that refers to a
|
5801 | 5803 | \keyword{mutable} member to modify a const class object. For
|
|
0 commit comments