Skip to content

Commit 2ce8d32

Browse files
jensmaurerzygoloid
authored andcommitted
[over.best.ics] Adjust example for [over.match.list] case
1 parent 60d777c commit 2ce8d32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/overloading.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,10 +1983,10 @@
19831983
struct A { operator int(); };
19841984
Y y1 = A(); // error: \tcode{A::operator int()} is not a candidate
19851985

1986-
struct X { };
1986+
struct X { X(); };
19871987
struct B { operator X(); };
19881988
B b;
1989-
X x({b}); // error: \tcode{B::operator X()} is not a candidate
1989+
X x{{b}}; // error: \tcode{B::operator X()} is not a candidate
19901990
\end{codeblock}
19911991
\end{example}
19921992

0 commit comments

Comments
 (0)