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

[over.ics.list] expand example 5, fix inconsistent spacing #6454

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Eisenwave
Copy link
Contributor

@Eisenwave Eisenwave commented Aug 13, 2023

This edit expands the example to include the edge case where the std::initializer_list constructors competes with the copy constructor. This edge case has been the subject of some core issues:

It's also responsible for an LLVM bug where the copy constructor wins in overload resolution, and this is actively being worked on:

To raise awareness for this issue, and how the edge case should be handled, it would be wise to include it in the example.

Furthermore, this edit fixes inconsistent comma spacing towards the beginning of the example. While the style is up to the author of the examples, they should at least follow consistent style, and not space 1,2,3 in one place, but 1.0, 2.0 in another.

@jensmaurer jensmaurer added the cwg Issue must be reviewed by CWG. label Mar 3, 2024
@jensmaurer
Copy link
Member

The spacing fix is fine. I'm not comfortable adding the example editorially.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cwg Issue must be reviewed by CWG.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants