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] Remove the paragraph made dangling by P1787R6 #6195

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

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Mar 17, 2023

While "this way" is in normative wording, the referred way is moved into a non-normative note by P1787R6 (#[class.ctor]). It's probably wrong for nomative wording to do this.

Additionally, the paragraph seems already incorrect in C++17, because auto s = std::string(); seemly creates a named object in "this way". Temporary objects created in this way are unnamed, but I believe it makes more sense to say all temporary objects are unnamed.

Fixes #5491.

@tkoeppe
Copy link
Contributor

tkoeppe commented Mar 29, 2023

@jensmaurer could you have a look please?

source/basic.tex Outdated Show resolved Hide resolved
source/classes.tex Show resolved Hide resolved
source/basic.tex Outdated Show resolved Hide resolved
And add a note stating that every temporary object is unnamed.
@frederick-vs-ja
Copy link
Contributor Author

Squashed and rebased.

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 this pull request may close these issues.

[class.ctor.general] p3 is made dangling by P1787
3 participants