File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 492
492
a(); // OK, \tcode {(*this).a()}
493
493
}
494
494
495
- void c(this const C&); // \# 1
496
- void c()&; // \# 2
497
- static void c(int = 0); // \# 3
498
-
499
- void d() {
500
- c(); // error: ambiguous between \# 2 and \# 3
501
- (C::c)(); // error: as above
502
- (&(C::c))(); // error: cannot resolve address of overloaded \tcode {this->C::c}\iref {over.over }
503
- (&C::c)(C{}); // selects \# 1
504
- (&C::c)(*this); // error: selects \# 2, and is ill-formed\iref {over.match.call.general }
505
- (&C::c)(); // selects \# 3
506
- }
495
+ void c(this const C&); // \# 1
496
+ void c() &; // \# 2
497
+ static void c(int = 0); // \# 3
498
+
499
+ void d() {
500
+ c(); // error: ambiguous between \# 2 and \# 3
501
+ (C::c)(); // error: as above
502
+ (&(C::c))(); // error: cannot resolve address of overloaded \tcode {this->C::c}\iref {over.over }
503
+ (&C::c)(C{}); // selects \# 1
504
+ (&C::c)(*this); // error: selects \# 2, and is ill-formed\iref {over.match.call.general }
505
+ (&C::c)(); // selects \# 3
506
+ }
507
507
508
508
void f(this const C&);
509
509
void g() const {
You can’t perform that action at this time.
0 commit comments