Skip to content

Commit 4fa0e40

Browse files
authored
clang10 (#669)
1 parent 276b2f5 commit 4fa0e40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

strings/base_coroutine_foundation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ namespace winrt::impl
118118
}
119119

120120
private:
121-
std::experimental::coroutine_handle<> m_handle;
122121
resume_apartment_context m_context;
122+
std::experimental::coroutine_handle<> m_handle;
123123

124124
void Complete()
125125
{
@@ -743,7 +743,7 @@ WINRT_EXPORT namespace winrt
743743

744744
auto [delegate, shared] = impl::make_delegate_with_shared_state<impl::async_completed_handler_t<T>>(shared_type{});
745745

746-
auto completed = [&](T const& async)
746+
auto completed = [delegate = std::move(delegate)](T const& async)
747747
{
748748
async.Completed(delegate);
749749
};

0 commit comments

Comments
 (0)