Skip to content

Commit bd69bdb

Browse files
committed
Replace usage of std::result_of with std::invoke_result
C++17 deprecates `std::result_of` in favour of `std::invoke_result`. Updating our code to use the replacement avoids the use of the reprecated version.
1 parent 16c6db6 commit bd69bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/range.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ struct ranget final
420420
template <typename functiont>
421421
auto map(functiont &&f)
422422
{
423-
using outputt = typename std::result_of<functiont(value_type)>::type;
423+
using outputt = typename std::invoke_result<functiont, value_type>::type;
424424
auto shared_f = std::make_shared<
425425
std::function<outputt(const typename iteratort::value_type &)>>(
426426
std::forward<functiont>(f));

0 commit comments

Comments
 (0)