Skip to content

Commit 10a15fb

Browse files
jensmaurerzygoloid
authored andcommitted
[structure.specifications] Integrate [res.on.expects].
The latter consisted of a single sentence that is best integrated into the place where the Preconditions: element is introduced. Also fixes LWG3168.
1 parent c58c811 commit 10a15fb

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

source/lib-intro.tex

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@
317317
\item
318318
\expects
319319
the conditions
320-
that the function assumes to hold whenever it is called.
320+
that the function assumes to hold whenever it is called;
321+
violation of any preconditions results in undefined behavior.
321322

322323
\item
323324
\effects
@@ -2687,12 +2688,6 @@
26872688
This applies even to objects such as mutexes intended for thread synchronization.
26882689
\end{note}
26892690

2690-
\rSec3[res.on.expects]{Expects paragraph}
2691-
2692-
\pnum
2693-
Violation of any preconditions specified in a function's \expects element
2694-
results in undefined behavior.
2695-
26962691
\rSec3[res.on.requirements]{Semantic requirements}
26972692

26982693
\pnum

0 commit comments

Comments
 (0)