File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1094
1094
non-static data members.
1095
1095
1096
1096
\pnum
1097
- A cv-qualified member function can be called on an
1098
- object-expression\iref {expr.ref } only if the object-expression is as
1099
- cv-qualified or less-cv-qualified than the member function.
1097
+ A member function whose type has a \grammarterm {cv-qualifier-seq} \cvqual {cv1}
1098
+ can be called on an
1099
+ object expression\iref {expr.ref } of type \cvqual {cv2} \tcode {T} only
1100
+ if \cvqual {cv1} is the same as or more cv-qualified than \cvqual {cv2}\iref {basic.type.qualifier }.
1100
1101
\begin {example }
1101
1102
\begin {codeblock }
1102
1103
void k(s& x, const s& y) {
1109
1110
1110
1111
The call \tcode {y.g()} is ill-formed because \tcode {y} is \tcode {const}
1111
1112
and \tcode {s::g()} is a non-const member function, that is,
1112
- \tcode {s::g()} is less-qualified than the object- expression \tcode {y}.
1113
+ \tcode {s::g()} is less-qualified than the object expression \tcode {y}.
1113
1114
\end {example }
1114
1115
1115
1116
\pnum
You can’t perform that action at this time.
0 commit comments