Skip to content

[conv.general, expr.static.cast] Remove inappropriate "temporary"#6646

Open
tkoeppe wants to merge 2 commits into
cplusplus:mainfrom
tkoeppe:temporary
Open

[conv.general, expr.static.cast] Remove inappropriate "temporary"#6646
tkoeppe wants to merge 2 commits into
cplusplus:mainfrom
tkoeppe:temporary

Conversation

@tkoeppe

@tkoeppe tkoeppe commented Nov 8, 2023

Copy link
Copy Markdown
Contributor

It's not clear in which sense the invented variables in question are "temporary". Since C++ already contains a notion of a "temporary (object)", and since variables are precisely not temporary objects, it seems unnecessary to use the words "temporary variable" in the present sense.

See also http://thecodelesscode.com/case/234.

@tkoeppe

tkoeppe commented Nov 8, 2023

Copy link
Copy Markdown
Contributor Author

@opensdh: could you please PTAL a look?

It's not clear in which sense the invented variables in question are
"temporary". Since C++ already contains a notion of a "temporary
(object)", and since variables are precisely _not_ temporary objects,
it seems unnecessary to use the words "temporary variable" in the
present sense.

@opensdh opensdh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should probably check with more than one person here, though.

Comment thread source/expressions.tex Outdated
@tkoeppe

tkoeppe commented Nov 9, 2023

Copy link
Copy Markdown
Contributor Author

@jensmaurer: Could I interest you/CWG in this?

@jensmaurer

Copy link
Copy Markdown
Member

CWG 2023-11-10: We want [class.temporary] p6 to refer to "invented temporary variable" as one of the roots of "temporary expression" and say this is a "temporary object". Other cases (where we don't mean "temporary") should use "invented variable". This needs a core issue.

@tkoeppe tkoeppe added cwg Issue must be reviewed by CWG. not-editorial Issue is not deemed editorial; the editorial issue is kept open for tracking. labels Nov 10, 2023
@languagelawyer

Copy link
Copy Markdown
Contributor

OP should say it addresses #2215

@wg21bot wg21bot added the needs rebase The pull request needs a git rebase to resolve merge conflicts. label Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cwg Issue must be reviewed by CWG. needs rebase The pull request needs a git rebase to resolve merge conflicts. not-editorial Issue is not deemed editorial; the editorial issue is kept open for tracking.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants