Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve class hierarchy support #3212

Merged
merged 5 commits into from
Aug 20, 2024
Merged

Improve class hierarchy support #3212

merged 5 commits into from
Aug 20, 2024

Conversation

kennykerr
Copy link
Collaborator

@kennykerr kennykerr commented Aug 20, 2024

While working on futures, I noticed that WinRT classes whose default interface isn't exclusive aren't quite represented most optimally. This is a pretty niche type system issue but it helps simplify a few internals both here and in a subsequent update around futures and async support.

Basically, in such cases the non-exclusive default interface moves from the required_hierarchy macro to the interface_hierarchy macro as part of code generation. This means that such casts can be performance without calling QueryInterface.

@kennykerr kennykerr merged commit 9aa27d1 into master Aug 20, 2024
79 checks passed
@kennykerr kennykerr deleted the class_hierarchy branch August 20, 2024 20:29
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.

1 participant