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

[class.ctor.general] p3 is made dangling by P1787 #5491

Open
frederick-vs-ja opened this issue May 25, 2022 · 1 comment · May be fixed by #6195
Open

[class.ctor.general] p3 is made dangling by P1787 #5491

frederick-vs-ja opened this issue May 25, 2022 · 1 comment · May be fixed by #6195

Comments

@frederick-vs-ja
Copy link
Contributor

Currently the meaning of "this way" in [class.ctor.general]/3 seems unclear. Before P1787, it referred to "an explicit type conversion using the functional notation". But P1787 turned the wording into the non-normative note and made "this way" dangling.

Should we make some clarification in the paragraph, or remove it as it may be unnecessary?

@frederick-vs-ja
Copy link
Contributor Author

Oh, I think this is wrong at least since C++17. auto s = std::string(); seemly creates a named object in "this way".

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

Successfully merging a pull request may close this issue.

1 participant