diff --git a/gdbsupport/parallel-for.h b/gdbsupport/parallel-for.h index 44303abb716..713ec660306 100644 --- a/gdbsupport/parallel-for.h +++ b/gdbsupport/parallel-for.h @@ -131,13 +131,13 @@ private: template typename gdb::detail::par_for_accumulator< - std::result_of_t + typename std::result_of::type >::result_type parallel_for_each (unsigned n, RandomIt first, RandomIt last, RangeFunction callback) { - typedef typename std::result_of_t - result_type; + using result_type + = typename std::result_of::type; size_t n_threads = thread_pool::g_thread_pool->thread_count (); size_t n_elements = last - first;