We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 276b2f5 commit 4fa0e40Copy full SHA for 4fa0e40
strings/base_coroutine_foundation.h
@@ -118,8 +118,8 @@ namespace winrt::impl
118
}
119
120
private:
121
- std::experimental::coroutine_handle<> m_handle;
122
resume_apartment_context m_context;
+ std::experimental::coroutine_handle<> m_handle;
123
124
void Complete()
125
{
@@ -743,7 +743,7 @@ WINRT_EXPORT namespace winrt
743
744
auto [delegate, shared] = impl::make_delegate_with_shared_state<impl::async_completed_handler_t<T>>(shared_type{});
745
746
- auto completed = [&](T const& async)
+ auto completed = [delegate = std::move(delegate)](T const& async)
747
748
async.Completed(delegate);
749
};
0 commit comments