diff options
author | Håvard Pettersen <havardpe@yahooinc.com> | 2022-11-04 16:05:41 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@yahooinc.com> | 2022-11-04 16:05:41 +0000 |
commit | 8f8b70f57bf8b5174ee67a0404c14eecd5b73b4e (patch) | |
tree | cf6b11aece3305003d56f29e4e7bd00a50e64ffb | |
parent | 695d581cde4c66b4405537fb3a0cdf6d25128a3b (diff) |
do not stand in the way of return value optimization
-rw-r--r-- | vespalib/src/vespa/vespalib/coro/completion.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 <typename T> T sync_wait(Lazy<T> value) { - return std::move(make_future(std::move(value)).get()); + return make_future(std::move(value)).get(); } /** |