diff --git a/libs/pika/async_mpi/include/pika/async_mpi/transform_mpi.hpp b/libs/pika/async_mpi/include/pika/async_mpi/transform_mpi.hpp index b2fc7bc70..7472b6925 100644 --- a/libs/pika/async_mpi/include/pika/async_mpi/transform_mpi.hpp +++ b/libs/pika/async_mpi/include/pika/async_mpi/transform_mpi.hpp @@ -82,7 +82,7 @@ namespace pika::mpi::experimental { { return std::forward(sender) | let_value([=, f = std::forward(f)](auto&... args) mutable { - return just(std::tuple{args...}) | ex::unpack() | + return just(std::forward_as_tuple(args...)) | ex::unpack() | dispatch_mpi(std::move(f)) | let_value(completion_snd); }); } @@ -90,7 +90,7 @@ namespace pika::mpi::experimental { { return std::forward(sender) | continues_on(mpi_pool_scheduler(p)) | let_value([=, f = std::forward(f)](auto&... args) mutable { - return just(std::tuple{args...}) | ex::unpack() | + return just(std::forward_as_tuple(args...)) | ex::unpack() | dispatch_mpi(std::move(f)) | let_value(completion_snd); }); }