We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cea53d6 commit 7ff057cCopy full SHA for 7ff057c
source/templates.tex
@@ -8084,11 +8084,13 @@
8084
template <typename T, typename... Ts>
8085
struct X<T, Ts...> : X<Ts...> {};
8086
struct D : X<int> {};
8087
+struct E : X<>, X<int> {};
8088
8089
template <typename... T>
8090
int f(const X<T...>&);
8091
int x = f(D()); // calls \tcode{f<int>}, not \tcode{f<>}
8092
// \tcode{B} is \tcode{X<>}, \tcode{C} is \tcode{X<int>}
8093
+int z = f(E()); // calls \tcode{f<int>}, not \tcode{f<>}
8094
\end{codeblock}
8095
\end{example}
8096
\end{itemize}
0 commit comments