Skip to content

Commit 77579d2

Browse files
jensmaurerzygoloid
authored andcommitted
[dcl.attr.contract] Predicates of a contract are potentially evaluated,
as per the definition in [basic.def.odr], so turn the redundant normative statement into a note.
1 parent da24c5d commit 77579d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/declarations.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4310,6 +4310,9 @@
43104310
is contextually converted to \tcode{bool}\iref{conv};
43114311
the converted expression is called
43124312
the \defnx{predicate}{contract!predicate} of the contract.
4313+
\begin{note}
4314+
The predicate of a contract is potentially evaluated\iref{basic.def.odr}.
4315+
\end{note}
43134316

43144317
\pnum
43154318
A \defn{contract condition} is a precondition or a postcondition.
@@ -4363,9 +4366,6 @@
43634366
\end{example}
43644367
\end{note}
43654368

4366-
\pnum
4367-
The predicate of a contract is potentially evaluated\iref{basic.def.odr}.
4368-
43694369
\pnum
43704370
The predicate of a contract condition has the same semantic restrictions
43714371
as if it appeared as the first \grammarterm{expression-statement}

0 commit comments

Comments
 (0)