File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 900
900
\end {note }
901
901
\begin {note }
902
902
A \tcode {return} statement can involve
903
- an invocation of a constructor to perform a copy or move of the operand
903
+ a copy or move of the operand
904
904
if it is not a prvalue or if its type differs from the return type of the function.
905
- A copy operation associated with a \tcode {return} statement can be elided or
906
- converted to a move operation if an automatic storage duration variable is returned \iref {class.copy.elision } .
905
+ A copy operation associated with a \tcode {return} statement can be elided\iref { class.copy.elision }
906
+ or converted to a move operation if an implicitly movable entity \iref {expr.prim.id.unqual } is returned .
907
907
\end {note }
908
908
909
909
\pnum
993
993
\item
994
994
If the operand is a \grammarterm {braced-init-list} or an expression of non-\keyword {void} type,
995
995
\placeholder {S} is \placeholder {p}\tcode {.return_value(}\grammarterm {expr-or-braced-init-list}{}\tcode {)}.
996
+ \begin {note }
997
+ The overload resolution of \placeholder {S} is affected
998
+ by whether the operand is an implicitly movable entity\iref {expr.prim.id.unqual }.
999
+ \end {note }
996
1000
The expression \placeholder {S} shall be a prvalue of type \keyword {void}.
997
1001
998
1002
\item
You can’t perform that action at this time.
0 commit comments