diff --git a/.inshpect.toml b/.inshpect.toml index 6b8fc272d..7f92e11cc 100644 --- a/.inshpect.toml +++ b/.inshpect.toml @@ -230,7 +230,10 @@ patterns = [ { pattern = '\bstd::nullptr_t\b', include = 'cstddef' }, { pattern = '\bstd::(true|false)_type\b', include = 'type_traits' }, { pattern = '\bstd::(bool|integral)_constant\b', include = 'type_traits' }, + { pattern = '\bstd::invoke_result\b', include = 'type_traits' }, + { pattern = '\bstd::invoke_result_t\b', include = 'type_traits' }, { pattern = '\bstd::is_void\b', include = 'type_traits' }, + { pattern = '\bstd::is_void_t\b', include = 'type_traits' }, { pattern = '\bstd::is_null_pointer\b', include = 'type_traits' }, { pattern = '\bstd::is_integral\b', include = 'type_traits' }, { pattern = '\bstd::is_floating_point\b', include = 'type_traits' }, diff --git a/libs/pika/async_cuda/include/pika/async_cuda/then_on_host.hpp b/libs/pika/async_cuda/include/pika/async_cuda/then_on_host.hpp index f61b8b879..a623366f7 100644 --- a/libs/pika/async_cuda/include/pika/async_cuda/then_on_host.hpp +++ b/libs/pika/async_cuda/include/pika/async_cuda/then_on_host.hpp @@ -81,8 +81,8 @@ namespace pika::cuda::experimental { { pika::detail::try_catch_exception_ptr( [&]() { - if constexpr (std::is_void_v>) + if constexpr (std::is_void_v< + std::invoke_result_t>) { // Certain versions of GCC with optimizations fail on // the move with an internal compiler error. @@ -165,7 +165,7 @@ namespace pika::cuda::experimental { pika::execution::experimental::completion_signatures< pika::execution::experimental::detail:: result_type_signature_helper_t< - pika::util::detail::invoke_result_t>>; + std::invoke_result_t>>; using completion_signatures = pika::execution::experimental::make_completion_signatures< @@ -181,8 +181,7 @@ namespace pika::cuda::experimental { template