Skip to content

Commit c4836f3

Browse files
committed
P0704R1 Fixing const-qualified pointers to members
1 parent da42fd0 commit c4836f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/expressions.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4003,8 +4003,9 @@
40034003
pointed to by \tcode{ptr_to_obj}.
40044004
\end{example}
40054005
In a \tcode{.*} expression whose object expression is an rvalue, the program is
4006-
ill-formed if the second operand is a pointer to member function with
4007-
\grammarterm{ref-qualifier} \tcode{\&}.
4006+
ill-formed if the second operand is a pointer to member function
4007+
whose \grammarterm{ref-qualifier} is \tcode{\&},
4008+
unless its \grammarterm{cv-qualifier-seq} is \tcode{const}.
40084009
In a \tcode{.*}
40094010
expression whose object expression is an lvalue, the program is ill-formed if the second
40104011
operand is a pointer to member function with \grammarterm{ref-qualifier} \tcode{\&\&}.

0 commit comments

Comments
 (0)