Skip to content

Commit 2930dc5

Browse files
jensmaurerzygoloid
authored andcommitted
[dcl.attr.contract] Permit modifications of temporaries within the predicate.
1 parent 87c3c20 commit 2930dc5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/declarations.tex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4462,8 +4462,7 @@
44624462
The only side effects of a predicate
44634463
that are allowed in a \grammarterm{contract-attribute-specifier}
44644464
are modifications of non-volatile objects
4465-
whose lifetime began and ended within the evaluation of the predicate
4466-
in functions invoked from that predicate.
4465+
whose lifetime began and ended within the evaluation of the predicate.
44674466
An evaluation of a predicate that exits via an exception
44684467
invokes \tcode{std::terminate()}\iref{except.terminate}.
44694468
The behavior of any other side effect is undefined.

0 commit comments

Comments
 (0)