[over.best.ics] Remove redundant sub-bullet CWG2829 #3871
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The wording in [over.best.ics] p4 sub 3 is not only incorrect, but also redundant:
The "temporary" wording referred to here was removed by P0135 in [dcl.init]/17.6.3. Additionally, this wording is not even necessary. Consider the following:
[dcl.init]/17.6.3 dictates that the candidate functions here are chosen by [over.match.copy], meaning that [over.best.ics] p4 sub 4 applies from the get-go, thus not allowing the implicit conversion sequence from
const char[4]
tostd::string
to be formed as a user defined conversion sequence would be required but is not permitted.The direct-initialization that is performed as the second step in [dcl.init]/17.6.3 will always follow the rules of [dcl.init]/17.6.1 since it is a prvalue of the same type, meaning the constructor selected by [over.match.copy] is the only function that will be called.