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

[dcl.init.list] Construction of an initializer_list object from a pair of pointers #6719

Open
frederick-vs-ja opened this issue Dec 5, 2023 · 0 comments

Comments

@frederick-vs-ja
Copy link
Contributor

An example in [dcl.init.list] p6 says that "assuming that the implementation can construct an initializer_list object with a pair of pointers". However, it seems unclear in the example itself whether the corresponding constructor can be exposed to users.

Presumably, the additional constructor shouldn't be public since [initializer.list.syn] doesn't show it. Should we clarify this in the example?

(The pointer-pair constructor is public in MSVC STL. But I guess such implementation divergence is just because of some restrictions in MSVC and no LWG issue is needed.)

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