From 8f8b70f57bf8b5174ee67a0404c14eecd5b73b4e Mon Sep 17 00:00:00 2001 From: HÃ¥vard Pettersen Date: Fri, 4 Nov 2022 16:05:41 +0000 Subject: do not stand in the way of return value optimization --- vespalib/src/vespa/vespalib/coro/completion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vespalib/src/vespa/vespalib/coro/completion.h b/vespalib/src/vespa/vespalib/coro/completion.h index 6533a718010..f323d8c68bf 100644 --- a/vespalib/src/vespa/vespalib/coro/completion.h +++ b/vespalib/src/vespa/vespalib/coro/completion.h @@ -86,7 +86,7 @@ auto make_receiver(F &&f) { **/ template T sync_wait(Lazy value) { - return std::move(make_future(std::move(value)).get()); + return make_future(std::move(value)).get(); } /** -- cgit v1.2.3