You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Returning/casting to rvalue reference of *object type* is an xvalue. The example misses the "object type" part.
2. A(n almost, the PR is waiting to be merged) complete and correct list of xvalue expressions is just 2 (or 3? I'm bad at counting) paragraph below. So, fixing the example is not rational, better to delete it.
Copy file name to clipboardExpand all lines: source/expressions.tex
-5Lines changed: 0 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -95,11 +95,6 @@
95
95
or computes the value of the operand of an operator,
96
96
as specified by the context in which it appears.
97
97
\item An \defn{xvalue} is a glvalue that denotes an object or bit-field whose resources can be reused (usually because it is near the end of its lifetime).
98
-
\begin{example}
99
-
Certain kinds of expressions involving rvalue references\iref{dcl.ref} yield xvalues,
100
-
such as a call to a function whose return type is an rvalue reference
101
-
or a cast to an rvalue reference type.
102
-
\end{example}
103
98
\item An \defn{lvalue} is a glvalue that is not an xvalue.
0 commit comments