You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please add line exporting std::coroutine_traits for all coroutine types,
right now if any type is used inside a module with import winrt; coroutine traits tend to break up.
Proposal, at the generated header of Windows.Foundation.h
at line 3856 add macro WINRT_EXPORT
so it would look like WINRT_EXPORT namespace std
Have you tested that coroutine export+import works after this change? Last time I tried, I still ran into various compiler bugs. If you can get it to work, feel free to contribute a PR.
Yes, I did a manual export of those templates as the standard suggests, but I found out that the entirety of winrt.ixx is not working, I'm running latest preview:
Microsoft Visual Studio Enterprise 2019 Preview
Version 16.11.0 Preview 1.0
it compiles, but even smallest example is not working (just an empty project with removed pch)
and even if it compiles, then process looses the entry point for some reason
Activity
sylveon commentedon May 30, 2021
I'd suggest adding WINRT_EXPORT to the template specializations directly instead of the whole namespace.
kennykerr commentedon May 31, 2021
Have you tested that coroutine export+import works after this change? Last time I tried, I still ran into various compiler bugs. If you can get it to work, feel free to contribute a PR.
Agrael1 commentedon May 31, 2021
Yes, I did a manual export of those templates as the standard suggests, but I found out that the entirety of winrt.ixx is not working, I'm running latest preview:
Microsoft Visual Studio Enterprise 2019 Preview
Version 16.11.0 Preview 1.0
it compiles, but even smallest example is not working (just an empty project with removed pch)
and even if it compiles, then process looses the entry point for some reason
Further investigation is required
kennykerr commentedon Jul 20, 2021
Feel free to reopen if you plan to work on this issue.