From 3bada82583d42eaf9a2b6f0d7d0348652eef5e62 Mon Sep 17 00:00:00 2001 From: lprv <100177227+lprv@users.noreply.github.com> Date: Sun, 14 Dec 2025 17:22:46 +0000 Subject: [PATCH] [class.temporary] Clean up wording --- source/basic.tex | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/source/basic.tex b/source/basic.tex index a813f68d9c..95b21de562 100644 --- a/source/basic.tex +++ b/source/basic.tex @@ -4756,27 +4756,28 @@ \end{itemize} implementations are permitted to create temporary objects -to hold the function parameter or result object, +to hold the value of the function parameter or result object, as follows: \begin{itemize} \item The first such temporary object -is constructed from the function argument or return value, respectively. +is initialized from the function argument or +the operand of \keyword{return}, respectively. \item Each successive temporary object is initialized from the previous one as if by direct-initialization if \tcode{X} is a scalar type, otherwise by using an eligible trivial constructor. \item -The function parameter or return object is initialized -from the final temporary +The function parameter or result object is initialized +from the final temporary object as if by direct-initialization if \tcode{X} is a scalar type, otherwise by using an eligible trivial constructor. \end{itemize} -(In all cases, the eligible constructor is used +In all cases, the eligible constructor is used even if that constructor is inaccessible or would not be selected by overload resolution -to perform a copy or move of the object). +to perform a copy or move of the object. \begin{note} This latitude is granted to allow objects to be passed to or returned from functions in registers.