diff --git a/source/templates.tex b/source/templates.tex index 8db57d6312..6354545b57 100644 --- a/source/templates.tex +++ b/source/templates.tex @@ -8049,11 +8049,13 @@ template struct X : X {}; struct D : X {}; +struct E : X<>, X {}; template int f(const X&); int x = f(D()); // calls \tcode{f}, not \tcode{f<>} // \tcode{B} is \tcode{X<>}, \tcode{C} is \tcode{X} +int z = f(E()); // calls \tcode{f}, not \tcode{f<>} \end{codeblock} \end{example} \end{itemize}