@@ -213,8 +213,7 @@ __counting_sort_impl(_ForwardIterator __first, _ForwardIterator __last, _RandomA
213213 using value_type = __iter_value_type<_ForwardIterator>;
214214 using traits = __counting_sort_traits<value_type, _Map>;
215215
216- using difference_type = typename iterator_traits<_RandomAccessIterator>::difference_type;
217- difference_type __counters[traits::__value_range + 1 ] = {0 };
216+ __iter_diff_t <_RandomAccessIterator> __counters[traits::__value_range + 1 ] = {0 };
218217
219218 std::__collect (__first, __last, __map, std::next (std::begin (__counters)));
220219 std::__dispose (__first, __last, __result, __map, std::begin (__counters));
@@ -252,9 +251,8 @@ __radix_sort_impl(_RandomAccessIterator1 __first,
252251 using value_type = __iter_value_type<_RandomAccessIterator1>;
253252 using traits = __radix_sort_traits<value_type, _Map, _Radix>;
254253
255- using difference_type = typename iterator_traits<_RandomAccessIterator1>::difference_type;
256- difference_type __counters[traits::__radix_count][traits::__radix_value_range] = {{0 }};
257- difference_type __maximums[traits::__radix_count] = {0 };
254+ __iter_diff_t <_RandomAccessIterator1> __counters[traits::__radix_count][traits::__radix_value_range] = {{0 }};
255+ __iter_diff_t <_RandomAccessIterator1> __maximums[traits::__radix_count] = {0 };
258256 const auto __is_sorted = std::__collect (__first, __last, __map, __radix, __counters, __maximums);
259257 if (not __is_sorted) {
260258 const auto __range_size = std::distance (__first, __last);
0 commit comments