[clang] [llvm] [libcxx] [clang-tools-extra] [libc++] Fix complexity guarantee in ranges::clamp (PR #68413)

Louis Dionne via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 31 14:45:46 PDT 2023


================
@@ -37,9 +37,10 @@ struct __fn {
     _LIBCPP_ASSERT_UNCATEGORIZED(!bool(std::invoke(__comp, std::invoke(__proj, __high), std::invoke(__proj, __low))),
----------------
ldionne wrote:

We discussed this just now and we both feel that while this pedantically makes us non-conforming in debug mode, this is extremely unlikely to break users so we think this is acceptable.

https://github.com/llvm/llvm-project/pull/68413


More information about the cfe-commits mailing list