Skip to content

Commit 399d1db

Browse files
committed
[expr.mptr.oper] Clarify pointer-to-member operators.
1 parent 44c5220 commit 399d1db

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

source/expressions.tex

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5766,16 +5766,15 @@
57665766

57675767
\pnum
57685768
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
57705770
a glvalue
57715771
of
57725772
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}.
57755774

57765775
\pnum
57775776
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
57795778
type ``pointer to \tcode{U}''
57805779
where \tcode{U} is either \tcode{T} or
57815780
a class of which \tcode{T}
@@ -5795,7 +5794,10 @@
57955794
The restrictions on cv-qualification, and the manner in which
57965795
the cv-qualifiers of the operands are combined to produce the
57975796
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 non-mutable member of class \tcode{T}
5800+
declared with type \tcode{X}.
57995801
\begin{note}
58005802
It is not possible to use a pointer to member that refers to a
58015803
\keyword{mutable} member to modify a const class object. For

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy