From 71901d13662de3adf88bdd65d8c9767cf8c8134b Mon Sep 17 00:00:00 2001 From: Mikael Simberg Date: Wed, 13 Nov 2024 20:40:01 +0100 Subject: [PATCH] Use forward_as_tuple to forward references in transform_mpi --- libs/pika/async_mpi/include/pika/async_mpi/transform_mpi.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }); }