[libcxx-commits] [libcxx] [libc++] Fix LWG 4265: std::midpoint should not accept const bool (PR #174579)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 6 06:52:55 PST 2026
================
@@ -35,8 +35,9 @@ _LIBCPP_BEGIN_NAMESPACE_STD
#if _LIBCPP_STD_VER >= 20
template <class _Tp>
-_LIBCPP_HIDE_FROM_ABI constexpr enable_if_t<is_integral_v<_Tp> && !is_same_v<bool, _Tp> && !is_null_pointer_v<_Tp>, _Tp>
-midpoint(_Tp __a, _Tp __b) noexcept _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK {
+_LIBCPP_HIDE_FROM_ABI constexpr enable_if_t<
----------------
eiytoq wrote:
I'll address the test cleanup and the `requires` update in a separate PR after this one merges.
https://github.com/llvm/llvm-project/pull/174579
More information about the libcxx-commits
mailing list