Skip to content

Commit 48b767d

Browse files
committed
[basic.lval] Correct example of xvalue to not suggest that a function call
returning an rvalue reference to a function type is an xvalue. Fixes cplusplus#315
1 parent c36a8af commit 48b767d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎source/basic.tex‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4063,7 +4063,7 @@
40634063
the end of its lifetime (so that its resources may be moved, for example). An xvalue
40644064
is the result of certain kinds of expressions involving rvalue references~(\ref{dcl.ref}).
40654065
\enterexample The result of calling a function whose return type is an rvalue reference
4066-
is an xvalue. \exitexample
4066+
to an object type is an xvalue~(\ref{expr.call}). \exitexample
40674067

40684068
\item A \defn{glvalue} (``generalized'' lvalue) is an lvalue or an xvalue.
40694069

0 commit comments

Comments
 (0)