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.arg.explicit] Misleading note about explicit template arguments on constructors #2041

Closed
jensmaurer opened this issue Apr 19, 2018 · 0 comments
Assignees

Comments

@jensmaurer
Copy link
Member

jensmaurer commented Apr 19, 2018

The note in paragraph 7 says "Because ... constructor member function templates are called without using a function name, there is no way to provide an explicit template argument list for these function templates."

This reasoning falls short for the other situations where a constructor template may be named, e.g. in an explicit instantiation or specialization.

I'd suggest to replace the "called" with "named" and add cross-references to [class.ctor] and [class.mem].

There is 12-year-old core issue 581 on the subject whether explicit instantiations or specializations of constructors should be allowed to use explicit template arguments, but the status quo normative situation in 17.9.1 [temp.arg.explicit] p1 seems pretty clear ("function template name").

@jensmaurer jensmaurer changed the title [temp.arg.explicit] MIsleading note about explicit template arguments on constructors [temp.arg.explicit] Misleading note about explicit template arguments on constructors Apr 19, 2018
@jensmaurer jensmaurer self-assigned this Apr 20, 2018
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