Skip to content

Commit 5e32fd0

Browse files
committed
tidy
1 parent 91c6bac commit 5e32fd0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libcxx/include/__algorithm/stable_sort.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
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
204203
template <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

214213
template <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

226224
template <class _AlgPolicy, class _Compare, class _RandomAccessIterator>

0 commit comments

Comments
 (0)