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

What "temporary variable" is? #2215

Open
languagelawyer opened this issue Jun 27, 2018 · 4 comments
Open

What "temporary variable" is? #2215

languagelawyer opened this issue Jun 27, 2018 · 4 comments

Comments

@languagelawyer
Copy link
Contributor

[conv]/3, [conv]/4, [conv]/6 and [expr.static.cast]/4 are using this term combination of words. What does it mean?

@jwakely
Copy link
Member

jwakely commented Jun 27, 2018

Does [class.temporary] not help?

@languagelawyer
Copy link
Contributor Author

No, it does not.

@jensmaurer jensmaurer added the decision-required A decision of the editorial group (or the Project Editor) is required. label Jun 29, 2018
@jensmaurer
Copy link
Member

Editorial meeting: Normative wording seems wrong. We don't say what the scope and lifetime of the temporary variable is. Also, there might not be a temporary to start with (just a prvalue that initalizes something else eventually). The word "temporary" is problematic here, it's loaded plus the temporary (object) is not created at this point. Say "invented" or "hypothetical" variable t, and "would be well-formed".

@jensmaurer jensmaurer removed the decision-required A decision of the editorial group (or the Project Editor) is required. label Nov 6, 2018
@jensmaurer
Copy link
Member

[tuple.creation] just means "temporary objects".

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

3 participants