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

ArrayVector does not respond to QI for IIterable<T> #159

Open
tristanlabelle opened this issue Apr 15, 2024 · 0 comments
Open

ArrayVector does not respond to QI for IIterable<T> #159

tristanlabelle opened this issue Apr 15, 2024 · 0 comments

Comments

@tristanlabelle
Copy link
Contributor

tristanlabelle commented Apr 15, 2024

The Swift-implemented ArrayVector class implements IIterable<T> but does not respond to QI for it from WinRT callers.

The problem is that the wrapper class for a given IVector<T> interface implements its vtable's QueryInterface by delegating to CustomQueryInterface, but ArrayVector<T> cannot implement queryInterface for IIterable<T> because the IIDs and wrapper types it would need to create depend on T. It could possibly generate the correct IID based on T, but it instantiating the matching wrapper type would be complex.

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

No branches or pull requests

1 participant