[libcxx-commits] [PATCH] D143327: [libc++] Introduce __is_pointer_in_range

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Feb 4 14:56:08 PST 2023


philnik added inline comments.


================
Comment at: libcxx/include/__utility/is_pointer_in_range.h:47
+    const _Tp* __begin, const _Tp* __end, const _Up* __ptr) {
+  if (__libcpp_is_constant_evaluated())
+    return false;
----------------
Am I correct here that it's impossible to get aliasing pointers during constant evaluation that are not comparable normally?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143327/new/

https://reviews.llvm.org/D143327



More information about the libcxx-commits mailing list