Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c780a4d

Browse filesBrowse files
committed
[conv.general, expr.static.cast] Remove inappropriate "temporary"
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.
1 parent 8b38857 commit c780a4d
Copy full SHA for c780a4d

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎source/expressions.tex

Copy file name to clipboardExpand all lines: source/expressions.tex
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -550,14 +550,14 @@
550550
\pnum
551551
An expression $E$ can be
552552
\defnx{implicitly converted}{conversion!implicit} to a type \tcode{T} if and only if the
553-
declaration \tcode{T t=$E$;} is well-formed, for some invented temporary
553+
declaration \tcode{T t=$E$;} is well-formed, for some invented
554554
variable \tcode{t}\iref{dcl.init}.
555555

556556
\pnum
557557
Certain language constructs require that an expression be converted to a Boolean
558558
value. An expression $E$ appearing in such a context is said to be
559559
\defnx{contextually converted to \tcode{bool}}{conversion!contextual to \tcode{bool}} and is well-formed if and only if
560-
the declaration \tcode{\keyword{bool} t($E$);} is well-formed, for some invented temporary
560+
the declaration \tcode{\keyword{bool} t($E$);} is well-formed, for some invented
561561
variable \tcode{t}\iref{dcl.init}.
562562

563563
\pnum
@@ -577,7 +577,7 @@
577577
\pnum
578578
The effect of any implicit
579579
conversion is the same as performing the corresponding declaration and initialization
580-
and then using the temporary variable as the result of the conversion.
580+
and then using the invented variable as the result of the conversion.
581581
The result is an lvalue if \tcode{T} is an lvalue reference
582582
type or an rvalue reference to function type\iref{dcl.ref},
583583
an xvalue if \tcode{T} is an rvalue reference to object type,
@@ -4027,8 +4027,8 @@
40274027
\begin{codeblock}
40284028
T t(@$E$@);
40294029
\end{codeblock}
4030-
for some invented temporary variable \tcode{t}\iref{dcl.init}
4031-
and then using the temporary variable as the result of the conversion.
4030+
for some invented variable \tcode{t}\iref{dcl.init}
4031+
and then using the variable as the result of the conversion.
40324032
Otherwise, the result object is direct-initialized from $E$.
40334033
\begin{note}
40344034
The conversion is ill-formed when attempting to convert an

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.