1234567891011121314151617181920 |
- diff --git a/include/__numeric/midpoint.h b/include/__numeric/midpoint.h
- index 5325f5e..e7db992 100644
- --- a/include/__numeric/midpoint.h
- +++ b/include/__numeric/midpoint.h
- @@ -52,13 +52,8 @@ _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK
- }
-
-
- -template <class _TPtr>
- -_LIBCPP_INLINE_VISIBILITY constexpr
- -enable_if_t<is_pointer_v<_TPtr>
- - && is_object_v<remove_pointer_t<_TPtr>>
- - && ! is_void_v<remove_pointer_t<_TPtr>>
- - && (sizeof(remove_pointer_t<_TPtr>) > 0), _TPtr>
- -midpoint(_TPtr __a, _TPtr __b) noexcept
- +template <class _Tp, enable_if_t<is_object_v<_Tp> && !is_void_v<_Tp> && (sizeof(_Tp) > 0), int> = 0>
- +_LIBCPP_HIDE_FROM_ABI constexpr _Tp* midpoint(_Tp* __a, _Tp* __b) noexcept
- {
- return __a + _VSTD::midpoint(ptrdiff_t(0), __b - __a);
- }
|