Skip to content

Commit da24c5d

Browse files
jensmaurerzygoloid
authored andcommitted
[basic.def.odr] Rephrase ODR rule for contracts
1 parent 0fc2af6 commit da24c5d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

source/basic.tex

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -553,14 +553,13 @@
553553
requirement applies recursively)\footnote{\ref{dcl.fct.default}
554554
describes how default argument names are looked up.}; and
555555

556-
\item if \tcode{D} is a function that
557-
contains an assertion,
558-
has a postcondition,
559-
or invokes a function with a precondition,
560-
the conditions under which each definition of \tcode{D}
556+
\item if \tcode{D} invokes a function with a precondition,
557+
or is a function
558+
that contains an assertion or has a contract condition\iref{dcl.attr.contract},
559+
it is \impldef{consistency of build level and violation continuation mode}
560+
under which conditions all definitions of \tcode{D}
561561
shall be translated using the same build level
562-
and violation continuation mode\iref{dcl.attr.contract}
563-
are \impldef{consistency of build level and violation continuation mode}; and
562+
and violation continuation mode; and
564563

565564
\item if \tcode{D} is a class with an implicitly-declared
566565
constructor\iref{class.ctor}, it is as if the constructor was

0 commit comments

Comments
 (0)