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
consider moving [declval]p4 inside the itemdescr #4266
Comments
Also, "participates in overloading" should be "participates in overload resolution". |
Arguably the example goes with [declval] p1 by showing an example of using As for the second point, that is obviously an improvement. But ... is it actually correct for the library to talk about function templates not participating in overload resolution because of deduction failures? They still participate, in that they are in the initial candidate set, deduction fails, and they are removed from the set. Isn't that failed deduction part of overload resolution? Would it be more precise to replace "only participates in overload resolution if" with "is removed from the candidate set during overload resolution unless"? Not in scope for C++20 obviously. But if we wanted to change it, there are only a handful of places to change in the library now. The introduction of the Constraints: element in [structure.specification] replaced nearly 300 occurrences of "shall not participate in overload resolution unless". |
Let's fix the narrow issue with declval here. @jwakely, if you feel we should revisit the phrasing "participates in overload resolution", please create a separate, dedicated issue marked "decision-required". |
[declval]p4 appears to be an example for the
declval
function, so should be indented with the rest of the function's detailed description.The text was updated successfully, but these errors were encountered: