Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions strings/base_coroutine_foundation.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ namespace winrt::impl
}

private:
std::experimental::coroutine_handle<> m_handle;
resume_apartment_context m_context;
std::experimental::coroutine_handle<> m_handle;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The constructor and field order were inconsistent, leading to a Clang warning.


void Complete()
{
Expand Down Expand Up @@ -743,7 +743,7 @@ WINRT_EXPORT namespace winrt

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

auto completed = [&](T const& async)
auto completed = [delegate = std::move(delegate)](T const& async)
{
async.Completed(delegate);
};
Expand Down