From 42c8797e8689d2ffbdb38215cfdaf93a7118c2dc Mon Sep 17 00:00:00 2001 From: aurianer Date: Wed, 15 Feb 2023 11:56:33 +0100 Subject: [PATCH] Replace pika::util::detail::invoke_result by std::invoke_result --- .../include/pika/async_cuda/then_on_host.hpp | 5 +-- .../pika/async_cuda/then_with_stream.hpp | 17 ++++----- .../include/pika/async_mpi/transform_mpi.hpp | 6 +-- .../pika/execution/algorithms/bulk.hpp | 1 - .../pika/execution/algorithms/let_error.hpp | 5 +-- .../pika/execution/algorithms/let_value.hpp | 5 +-- .../pika/execution/algorithms/make_future.hpp | 8 ++-- .../execution/algorithms/schedule_from.hpp | 9 ++--- .../execution/algorithms/start_detached.hpp | 1 - .../pika/execution/algorithms/then.hpp | 7 ++-- .../pika/execution/detail/future_exec.hpp | 7 +--- .../pika/execution/executors/execution.hpp | 5 +-- .../traits/future_then_result_exec.hpp | 6 +-- .../future_then_async_executor.cpp | 3 +- .../tests/unit/minimal_async_executor.cpp | 3 +- .../include/pika/execution_base/sender.hpp | 6 +-- .../tests/unit/shared_parallel_executor.cpp | 3 +- .../include/pika/functional/bind.hpp | 8 ++-- .../include/pika/functional/bind_back.hpp | 3 +- .../include/pika/functional/bind_front.hpp | 3 +- .../include/pika/functional/deferred_call.hpp | 5 +-- .../include/pika/functional/invoke.hpp | 3 +- .../include/pika/functional/invoke_fused.hpp | 5 +-- .../include/pika/functional/one_shot.hpp | 3 +- .../pika/futures/packaged_continuation.hpp | 16 +++----- .../futures/traits/future_then_result.hpp | 5 +-- .../pika/include/include/pika/type_traits.hpp | 13 ------- .../iterator_support/transform_iterator.hpp | 3 +- .../pika/iterator_support/zip_iterator.hpp | 3 +- .../tests/unit/stencil3_iterator.cpp | 3 +- .../tests/unit/dataflow_external_future.cpp | 8 ++-- .../detail/pack_traversal_async_impl.hpp | 6 +-- .../detail/pack_traversal_impl.hpp | 13 +++---- .../pack_traversal/detail/unwrap_impl.hpp | 5 +-- .../tests/unit/async_customization.cpp | 3 +- .../pika/runtime/run_as_pika_thread.hpp | 13 +++---- libs/pika/tag_invoke/CMakeLists.txt | 1 - .../functional/detail/tag_fallback_invoke.hpp | 5 +-- .../functional/detail/tag_priority_invoke.hpp | 5 +-- .../include/pika/functional/invoke_result.hpp | 37 ------------------- .../include/pika/functional/tag_invoke.hpp | 7 ++-- .../threading_base/annotated_function.hpp | 3 +- 42 files changed, 87 insertions(+), 189 deletions(-) delete mode 100644 libs/pika/include/include/pika/type_traits.hpp delete mode 100644 libs/pika/tag_invoke/include/pika/functional/invoke_result.hpp 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 f61b8b8792..abe7d25b32 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 @@ -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