-
Notifications
You must be signed in to change notification settings - Fork 247
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
Bug: Upgrading from 2.0.221104.6 to a later version no longer builds co_await on a DispatcherQueue #1391
Comments
This may be a change in C++/ADL rules/compliance. If you add If that's not suitable, you can use |
cc @robmikh |
Ah, thanks! I used the wil version in the past as a substitute, good to know it's still there in C++/WinRT. At some point I need to update those headers, but I've been spending most of my free time using Rust. |
Worth pointing out that the wil version has some extra fixes that the cppwinrt one doesn't, as well as being the only one that works on WinUI 3. |
Don't look back. 😏 |
Thank you. 😄 |
Version
2.0.240111.5
Summary
After updating CppWinRT from 2.0.221104.6, which build this code, to 2.0.221117.1 or later, this code no longer builds.
I've uploaded a repository to make this easier to try to build and fail.
https://github.com/jaimecbernardo/Sample-CppWinRT-DispatcherQueue-build-regression
The code is taken from https://www.nuget.org/packages/robmikh.common/0.0.22-beta package, from this file: https://github.com/robmikh/robmikh.common/blob/aaa31a1bcd4fac19ce4c544d2cfd415612add7f0/robmikh.common/include/robmikh.common/dispatcherqueue.desktop.interop.h
CppWinRT 2.0.221104.6 builds this code. This repo can be built at this commit: jaimecbernardo/Sample-CppWinRT-DispatcherQueue-build-regression@c1a7221
The next version available (2.0.221117.1) jaimecbernardo/Sample-CppWinRT-DispatcherQueue-build-regression@7742b75 , and the lastest (2.0.221104.6) jaimecbernardo/Sample-CppWinRT-DispatcherQueue-build-regression@c1a7221 , no longer allow build this repository.
Reproducible example
Expected behavior
The code should be able to build successfully.
Actual behavior
Additional comments
No response
The text was updated successfully, but these errors were encountered: