std::result_of is deprecated in C++17, and removed in C++20, so let's
use std::invoke_result instead
Signed-off-by: Kefu Chai <kchai@redhat.com>
template<typename Iterator, typename AsyncAction>
inline auto do_for_each(Iterator begin, Iterator end, AsyncAction action) {
using futurator = \
- ::seastar::futurize<std::result_of_t<AsyncAction(decltype(*begin))>>;
+ ::seastar::futurize<std::invoke_result_t<AsyncAction, decltype(*begin)>>;
if (begin == end) {
return futurator::type::errorator_type::template make_ready_future<>();