Skip to content

Commit ed65b08

Browse files
authored
[stmt.return,dcl.fct.def.coroutine] Avoid use of 'glvalue result' (#4803)
1 parent 5fdfe68 commit ed65b08

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

source/declarations.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6467,7 +6467,7 @@
64676467
\pnum
64686468
The expression \tcode{\exposid{promise}.get_return_object()} is used
64696469
to initialize
6470-
the glvalue result or prvalue result object of a call to a coroutine.
6470+
the returned reference or prvalue result object of a call to a coroutine.
64716471
The call to \tcode{get_return_object}
64726472
is sequenced before
64736473
the call to \tcode{initial_suspend}

source/statements.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,8 @@
815815
in a function whose return type is not \cv{}~\keyword{void};
816816
\indextext{conversion!return type}%
817817
the \tcode{return} statement initializes the
818-
glvalue result or prvalue result object of the (explicit or implicit) function call
818+
returned reference or prvalue result object
819+
of the (explicit or implicit) function call
819820
by copy-initialization\iref{dcl.init} from the operand.
820821
\begin{note}
821822
A \tcode{return} statement can involve

0 commit comments

Comments
 (0)