diff options
-rw-r--r-- | vespalib/src/vespa/vespalib/coro/generator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/vespa/vespalib/coro/generator.h b/vespalib/src/vespa/vespalib/coro/generator.h index 486a0d280b6..9f6b6c9fde5 100644 --- a/vespalib/src/vespa/vespalib/coro/generator.h +++ b/vespalib/src/vespa/vespalib/coro/generator.h @@ -53,9 +53,9 @@ public: requires(!std::is_reference_v<T> && std::copy_constructible<T>) { struct awaiter : std::suspend_always { - awaiter(const T &value, Pointer &ptr) + awaiter(const T &value_in, Pointer &ptr) noexcept(std::is_nothrow_constructible_v<T, const T &>) - : value_cpy(value) + : value_cpy(value_in) { ptr = std::addressof(value_cpy); } |