Skip to content

Commit 0a01cbc

Browse files
committed
CWG2886 Temporaries and trivial potentially-throwing special member functions
1 parent 6b71dd3 commit 0a01cbc

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

source/basic.tex

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4447,7 +4447,7 @@
44474447

44484448
\pnum
44494449
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,
44514451
if \tcode{X} has at least one eligible copy or move constructor\iref{special},
44524452
each such constructor is trivial,
44534453
and the destructor of \tcode{X} is either trivial or deleted,
@@ -4470,11 +4470,6 @@
44704470
\indextext{temporary!constructor for}%
44714471
\indextext{temporary!destructor for}%
44724472
\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}.
44784473
Temporary objects are destroyed as the last step
44794474
in evaluating
44804475
the full-expression\iref{intro.execution}

0 commit comments

Comments
 (0)