Skip to content

Commit

Permalink
[stmt.return,dcl.fct.def.coroutine] Avoid use of 'glvalue result' (cp…
Browse files Browse the repository at this point in the history
  • Loading branch information
jensmaurer committed Sep 17, 2021
1 parent 5fdfe68 commit ed65b08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6467,7 +6467,7 @@
\pnum
The expression \tcode{\exposid{promise}.get_return_object()} is used
to initialize
the glvalue result or prvalue result object of a call to a coroutine.
the returned reference or prvalue result object of a call to a coroutine.
The call to \tcode{get_return_object}
is sequenced before
the call to \tcode{initial_suspend}
Expand Down
3 changes: 2 additions & 1 deletion source/statements.tex
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,8 @@
in a function whose return type is not \cv{}~\keyword{void};
\indextext{conversion!return type}%
the \tcode{return} statement initializes the
glvalue result or prvalue result object of the (explicit or implicit) function call
returned reference or prvalue result object
of the (explicit or implicit) function call
by copy-initialization\iref{dcl.init} from the operand.
\begin{note}
A \tcode{return} statement can involve
Expand Down

0 comments on commit ed65b08

Please sign in to comment.