diff --git a/NEWS.md b/NEWS.md index 11813328d..446b6777a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,11 @@ +# Version ? + +## Bug fixes + +* fixed compilation of `src/common/sorting.h` with certain compilers due to + the deprecation & removal of `std::result_of<>` in C++20. Fixes #3695. + + # Version 84.0 "Sleeper" 2024-04-28 ## New features and enhancements diff --git a/src/common/sorting.h b/src/common/sorting.h index 4958d7557..c371d145f 100644 --- a/src/common/sorting.h +++ b/src/common/sorting.h @@ -27,7 +27,7 @@ namespace mtx::sort { template< typename Titer , typename Tcriterion_maker - , typename Tcriterion = typename std::result_of< Tcriterion_maker(typename std::iterator_traits::value_type) >::type + , typename Tcriterion = typename std::invoke_result< Tcriterion_maker, typename std::iterator_traits::value_type >::type , typename Tcomparator = std::less > void