Skip to content

Commit 108bb54

Browse files
authored
[over.match.funcs] Correct comment in example.
Per the normative wording, excluded functions are not candidates; don't suggest they are candidates by describing them as not being viable.
1 parent a269632 commit 108bb54

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/overloading.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -675,21 +675,21 @@
675675
\begin{example}
676676
\begin{codeblock}
677677
struct A {
678-
A();
679-
A(A &&); // \#1
680-
template<typename T> A(T &&); // \#2
678+
A(); // \#1
679+
A(A &&); // \#2
680+
template<typename T> A(T &&); // \#3
681681
};
682682
struct B : A {
683683
using A::A;
684-
B(const B &); // \#3
685-
B(B &&) = default; // \#4, implicitly deleted
684+
B(const B &); // \#4
685+
B(B &&) = default; // \#5, implicitly deleted
686686

687687
struct X { X(X &&) = delete; } x;
688688
};
689689
extern B b1;
690-
B b2 = static_cast<B&&>(b1); // calls \#3: \#1, \#2, and \#4 are not viable
690+
B b2 = static_cast<B&&>(b1); // calls \#4: \#1 is not viable, \#2, \#3, and \#5 are not candidates
691691
struct C { operator B&&(); };
692-
B b3 = C(); // calls \#3
692+
B b3 = C(); // calls \#4
693693
\end{codeblock}
694694
\end{example}
695695

0 commit comments

Comments
 (0)