[libcxx-commits] [libcxx] [libc++][test] Fixes constexpr nasty_char_traits. (PR #90981)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue May 7 08:53:48 PDT 2024
================
@@ -16,6 +16,30 @@
#include "test_macros.h"
+// Tests whether the range [p1, p1 + n) overlaps with the range [p2, p2 + n).
+//
+// precondition The ranges [p1, p1 + n) and [p2, p2 + n) are valid ranges.
+//
+// Typically the pointers are compared with less than. This is not allowed when
+// the pointers belong to different ranges. This is UB. Typically, this is
----------------
ldionne wrote:
```suggestion
// the pointers belong to different ranges, which is UB. Typically, this is
```
https://github.com/llvm/llvm-project/pull/90981
More information about the libcxx-commits
mailing list