Skip to content

Commit

Permalink
Use forward_as_tuple to forward references in transform_mpi
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Nov 13, 2024
1 parent f176232 commit 71901d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/pika/async_mpi/include/pika/async_mpi/transform_mpi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ namespace pika::mpi::experimental {
{
return std::forward<Sender>(sender) |
let_value([=, f = std::forward<F>(f)](auto&... args) mutable {
return just(std::tuple<decltype(args)&...>{args...}) | ex::unpack() |
return just(std::forward_as_tuple(args...)) | ex::unpack() |
dispatch_mpi(std::move(f)) | let_value(completion_snd);
});
}
else
{
return std::forward<Sender>(sender) | continues_on(mpi_pool_scheduler(p)) |
let_value([=, f = std::forward<F>(f)](auto&... args) mutable {
return just(std::tuple<decltype(args)&...>{args...}) | ex::unpack() |
return just(std::forward_as_tuple(args...)) | ex::unpack() |
dispatch_mpi(std::move(f)) | let_value(completion_snd);
});
}
Expand Down

0 comments on commit 71901d1

Please sign in to comment.