From ee512864a2974058151f0f5d4b4b5d6fd93e3216 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Fri, 19 Apr 2024 03:48:24 +0000 Subject: [PATCH] feat update --- src/sled/futures/internal/promise.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/sled/futures/internal/promise.h b/src/sled/futures/internal/promise.h index 151affc..79201ca 100644 --- a/src/sled/futures/internal/promise.h +++ b/src/sled/futures/internal/promise.h @@ -17,13 +17,13 @@ class Promise final { "Promise<_, void> is not allowed. Use Promise<_, bool> instead"); public: - using Value = T; - constexpr Promise() noexcept = default; - constexpr Promise(const Promise &) noexcept = default; - constexpr Promise(Promise &&) noexcept = default; - Promise &operator=(const Promise &) noexcept = default; - Promise &operator=(Promise &&) noexcept = default; - ~Promise() = default; + using Value = T; + Promise() = default; + Promise(const Promise &) = default; + Promise(Promise &&) noexcept = default; + Promise &operator=(const Promise &) = default; + Promise &operator=(Promise &&) noexcept = default; + ~Promise() = default; Future GetFuture() const { return future_; };