Skip to content

Commit 982b323

Browse files
authored
[over.call.func] Fix indentation in example (#6392)
1 parent f8feaa6 commit 982b323

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

source/overloading.tex

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -492,18 +492,18 @@
492492
a(); // OK, \tcode{(*this).a()}
493493
}
494494

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+
}
507507

508508
void f(this const C&);
509509
void g() const {

0 commit comments

Comments
 (0)