Skip to content

Commit 01a0436

Browse files
languagelawyerzygoloid
authored andcommitted
Delete redundant and wrong example
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.
1 parent 5706664 commit 01a0436

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

source/expressions.tex

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,6 @@
9595
or computes the value of the operand of an operator,
9696
as specified by the context in which it appears.
9797
\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}
10398
\item An \defn{lvalue} is a glvalue that is not an xvalue.
10499
\item An \defn{rvalue} is a prvalue or an xvalue.
105100
\end{itemize}

0 commit comments

Comments
 (0)