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.deduct.call] wording #517
Comments
It's not strictly necessary, because references cannot be cv-qualified. |
It caused some confusion here (in Barry's and Anton Savin's answer), so I suggested it might be clarified. Barry originally thought the removal of cv-qualification causes type deduction to recur with the non-cv-qualified type; Anton might have though both sentences apply as well -- in any case, both seem to have though that |
At the very least, the section could use an example. We get 7 examples for initializer lists, 3 for forwarding reference, but none for the "standard" cases - which aren't necessarily trivial. |
Paragraph 3 reads:
"If P is a cv-qualified type, the top level cv-qualifiers of P's type are ignored for type deduction. If P is a reference type, the type referred to by P is used for type deduction."
The wording could be improved to make it clearer that the two sentences are mutually exclusive. Perhaps "Otherwise, if P is a reference type, ..." Or potentially reversing the two sentences: "If P is a reference type.... Otherwise, if P is a cv-qualified type, ..."
The text was updated successfully, but these errors were encountered: