File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
libcxx/include/__algorithm Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 2525#include < __memory/unique_temporary_buffer.h>
2626#include < __type_traits/desugars_to.h>
2727#include < __type_traits/enable_if.h>
28- #include < __type_traits/invoke.h>
2928#include < __type_traits/is_constant_evaluated.h>
3029#include < __type_traits/is_integral.h>
3130#include < __type_traits/is_same.h>
@@ -203,7 +202,7 @@ struct __stable_sort_switch {
203202#if _LIBCPP_STD_VER >= 17
204203template <class _Tp >
205204_LIBCPP_HIDE_FROM_ABI constexpr unsigned __radix_sort_min_bound () {
206- static_assert (is_arithmetic <_Tp>::value );
205+ static_assert (is_integral_v <_Tp > || numeric_limits<_Tp>::is_iec559 );
207206 if constexpr (sizeof (_Tp) == 1 ) {
208207 return 1 << 8 ;
209208 }
@@ -213,14 +212,13 @@ _LIBCPP_HIDE_FROM_ABI constexpr unsigned __radix_sort_min_bound() {
213212
214213template <class _Tp >
215214_LIBCPP_HIDE_FROM_ABI constexpr unsigned __radix_sort_max_bound () {
216- static_assert (is_arithmetic <_Tp>::value );
215+ static_assert (is_integral_v <_Tp > || numeric_limits<_Tp>::is_iec559 );
217216 if constexpr (sizeof (_Tp) >= 8 ) {
218217 return 1 << 15 ;
219218 }
220219
221220 return 1 << 16 ;
222221}
223-
224222#endif // _LIBCPP_STD_VER >= 17
225223
226224template <class _AlgPolicy , class _Compare , class _RandomAccessIterator >
You can’t perform that action at this time.
0 commit comments