diff --git a/src/util/range.h b/src/util/range.h index c714cdb0464..d884e7635fe 100644 --- a/src/util/range.h +++ b/src/util/range.h @@ -418,11 +418,9 @@ struct ranget final /// a value through `f`. `f` may take a move-only typed parameter by const /// reference. 'f' may also construct and return a move-only typed value. template - auto map(functiont &&f) -> ranget::type>> + auto map(functiont &&f) { - using outputt = typename std::result_of::type; + using outputt = typename std::invoke_result::type; auto shared_f = std::make_shared< std::function>( std::forward(f));