Skip to content

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?

@frederick-vs-ja
Copy link
Contributor Author

Squashed and rebased.

@tkoeppe
Copy link
Contributor

tkoeppe commented Aug 5, 2024

@jensmaurer Could you have another look?

@jensmaurer
Copy link
Member

Do we ever care whether an object is "named" or "unnamed"?

Entities (such as variables) usually have names, and have associated objects.

@frederick-vs-ja
Copy link
Contributor Author

I'm now completely removing the note and associated index.

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