File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 4442
4442
4443
4443
\pnum
4444
4444
When an object of class type \tcode {X}
4445
- is passed to or returned from a function,
4445
+ is passed to or returned from a potentially-evaluated function call ,
4446
4446
if \tcode {X} has at least one eligible copy or move constructor\iref {special },
4447
4447
each such constructor is trivial,
4448
4448
and the destructor of \tcode {X} is either trivial or deleted,
4465
4465
\indextext {temporary!constructor for}%
4466
4466
\indextext {temporary!destructor for}%
4467
4467
\indextext {temporary!destruction of}%
4468
- When an implementation introduces a temporary object of a class that has a
4469
- non-trivial constructor\iref {class.default.ctor,class.copy.ctor },
4470
- it shall ensure that a constructor is called for the temporary object.
4471
- Similarly, the destructor shall be called for a temporary with a non-trivial
4472
- destructor\iref {class.dtor }.
4473
4468
Temporary objects are destroyed as the last step
4474
4469
in evaluating
4475
4470
the full-expression\iref {intro.execution }
You can’t perform that action at this time.
0 commit comments