Skip to content

Commit a34d2e0

Browse files
vasamatkoeppe
authored andcommitted
[expr.pre] Clarify note on pointer subtraction
1 parent 56a6b7f commit a34d2e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/expressions.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6283,13 +6283,13 @@
62836283
array elements $i$ and $j$
62846284
of the same array object \tcode{x},
62856285
the expression \tcode{P - Q} has the value $i - j$.
6286-
\item Otherwise, the behavior is undefined.
62876286
\begin{note}
62886287
If the value $i - j$
62896288
is not in the range of representable values
62906289
of type \tcode{std::ptrdiff_t},
6291-
the behavior is undefined.
6290+
the behavior is undefined\iref{expr.pre}.
62926291
\end{note}
6292+
\item Otherwise, the behavior is undefined.
62936293
\end{itemize}
62946294

62956295
\pnum

0 commit comments

Comments
 (0)