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

[dcl.spec.auto] example inconsistent use of class and typename #105

Closed
sdutoit opened this issue May 9, 2013 · 1 comment
Closed

[dcl.spec.auto] example inconsistent use of class and typename #105

sdutoit opened this issue May 9, 2013 · 1 comment

Comments

@sdutoit
Copy link
Contributor

sdutoit commented May 9, 2013

Not sure if this is intentional, but the example added by N3638 to the end of [dcl.spec.auto] is inconsistent in its use of class vs typename:

template <typename T> auto g(T t) { return t; } // #1
template <class T> T g(T t) { return t; } // OK, not functionally equivalent to #1
@zygoloid
Copy link
Member

Covered by #53.

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

2 participants