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 4447
4447
4448
4448
\pnum
4449
4449
When an object of class type \tcode {X}
4450
- is passed to or returned from a function,
4450
+ is passed to or returned from a potentially-evaluated function call ,
4451
4451
if \tcode {X} has at least one eligible copy or move constructor\iref {special },
4452
4452
each such constructor is trivial,
4453
4453
and the destructor of \tcode {X} is either trivial or deleted,
4470
4470
\indextext {temporary!constructor for}%
4471
4471
\indextext {temporary!destructor for}%
4472
4472
\indextext {temporary!destruction of}%
4473
- When an implementation introduces a temporary object of a class that has a
4474
- non-trivial constructor\iref {class.default.ctor,class.copy.ctor },
4475
- it shall ensure that a constructor is called for the temporary object.
4476
- Similarly, the destructor shall be called for a temporary with a non-trivial
4477
- destructor\iref {class.dtor }.
4478
4473
Temporary objects are destroyed as the last step
4479
4474
in evaluating
4480
4475
the full-expression\iref {intro.execution }
You can’t perform that action at this time.
0 commit comments