Skip to content

Conversation

@dunhor
Copy link
Member

@dunhor dunhor commented Apr 23, 2020

No description provided.

@dunhor dunhor requested a review from kennykerr April 23, 2020 21:55
event_token get_token(delegate_type const& delegate) const noexcept
{
return event_token{ reinterpret_cast<int64_t>(get_abi(delegate)) };
return event_token{ reinterpret_cast<int64_t>(WINRT_IMPL_EncodePointer(get_abi(delegate))) };
Copy link
Member Author

Choose a reason for hiding this comment

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

One further possible option might be to call DecodePointer on the token in remove and then compare pointers so that there's only a single call out instead of one per entry.

@kennykerr
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

Copy link
Collaborator

@kennykerr kennykerr left a comment

Choose a reason for hiding this comment

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

Thanks!

@kennykerr kennykerr merged commit c8fa1f3 into master Apr 23, 2020
@kennykerr kennykerr deleted the dunhor-evtoken branch April 23, 2020 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants