Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo? in example in [temp.deduct.type] #241

Closed
Quuxplusone opened this issue Dec 8, 2013 · 0 comments
Closed

Typo? in example in [temp.deduct.type] #241

Quuxplusone opened this issue Dec 8, 2013 · 0 comments

Comments

@Quuxplusone
Copy link
Contributor

templates.tex contains the following example:

\pnum
A template type argument cannot be deduced from the type of a non-type
\grammarterm{template-argument}.

\pnum
\enterexample
\begin{codeblock}
template<class T, T i> void f(double a[10][i]);
int v[10][20];
f(v);               // error: argument for template-parameter \tcode{T} cannot be deduced
\end{codeblock}
\exitexample

Shouldn't that double read int, or vice versa? Otherwise I don't think anyone would intuitively think that T ought to be deducible; the call to f is just clearly ill-formed.

FrankHB pushed a commit to FrankHB/draft that referenced this issue Jul 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant