@@ -88,10 +88,10 @@ __partial_sum_max(_InputIterator __first, _InputIterator __last, _OutputIterator
8888
8989template <class _Value , class _Map , class _Radix >
9090struct __radix_sort_traits {
91- using __image_type = decay_t <invoke_result_t <_Map, _Value> >;
91+ using __image_type = decay_t <typename __invoke_of <_Map, _Value>::type >;
9292 static_assert (is_unsigned<__image_type>::value, " " );
9393
94- using __radix_type = decay_t <invoke_result_t <_Radix, __image_type> >;
94+ using __radix_type = decay_t <typename __invoke_of <_Radix, __image_type>::type >;
9595 static_assert (is_integral<__radix_type>::value, " " );
9696
9797 constexpr static auto __radix_value_range = numeric_limits<__radix_type>::max() + 1 ;
@@ -101,7 +101,7 @@ struct __radix_sort_traits {
101101
102102template <class _Value , class _Map >
103103struct __counting_sort_traits {
104- using __image_type = decay_t <invoke_result_t <_Map, _Value> >;
104+ using __image_type = decay_t <typename __invoke_of <_Map, _Value>::type >;
105105 static_assert (is_unsigned<__image_type>::value, " " );
106106
107107 constexpr static const auto __value_range = numeric_limits<__image_type>::max() + 1 ;
@@ -158,7 +158,7 @@ _LIBCPP_HIDE_FROM_ABI bool __collect_impl(
158158 using value_type = __iter_value_type<_ForwardIterator>;
159159 constexpr auto __radix_value_range = __radix_sort_traits<value_type, _Map, _Radix>::__radix_value_range;
160160
161- auto __previous = numeric_limits<invoke_result_t <_Map, value_type> >::min ();
161+ auto __previous = numeric_limits<typename __invoke_of <_Map, value_type>::type >::min ();
162162 auto __is_sorted = true ;
163163 std::for_each (__first, __last, [&__counters, &__map, &__radix, &__previous, &__is_sorted](const auto & value) {
164164 auto __current = __map (value);
0 commit comments