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

[temp.expl.spec] p10 What if the declarator-id in an explicit specialization is not a template-id? #5497

Open
xmh0511 opened this issue May 27, 2022 · 0 comments

Comments

@xmh0511
Copy link
Contributor

xmh0511 commented May 27, 2022

[temp.expl.spec] p10 says

A trailing template-argument can be left unspecified in the template-id naming an explicit function template specialization provided it can be deduced ([temp.deduct.decl]).

This rule cannot expound the intent implied by the example following it. the declarator-id is not a template-id but an identifier. The rule might be changed to

A trailing template-argument can be left unspecified in an explicit specialization of a function template or of a member function template provided it can be deduced ([temp.deduct.decl]).. If all template arguments can be deduced, the empty template argument list <> may be omitted.

In the same manner as [temp.explicit] p8.

@xmh0511 xmh0511 changed the title [temp.expl.spec] p10 What if the declarator-id is not a template-id in an explicit specialization? [temp.expl.spec] p10 What if the declarator-id in an explicit specialization is not a template-id? May 27, 2022
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