From 0641a29f42642cd5020759417165972f7ba3cb8d Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Sun, 10 Sep 2023 12:12:06 +0200 Subject: [PATCH] Fix a build issue on MSVC 2022 related to transforms wait --- include/continuable/detail/transforms/wait.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/continuable/detail/transforms/wait.hpp b/include/continuable/detail/transforms/wait.hpp index a2b4448..afbac17 100644 --- a/include/continuable/detail/transforms/wait.hpp +++ b/include/continuable/detail/transforms/wait.hpp @@ -192,6 +192,9 @@ struct unlocker { unlocker& operator=(unlocker const&) = delete; unlocker& operator=(unlocker&&) = default; + explicit unlocker(std::weak_ptr> frame) + : frame_(std::move(frame)) {} + ~unlocker() { unlock(Result::empty()); }