-
Notifications
You must be signed in to change notification settings - Fork 323
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
The undocumented wil library is used instead of winrt in several samples #688
Comments
Hey @kennykerr, can you help answer this? Thanks! |
Agreed, the samples should stick to C++/WinRT. I had a quick look and its being used for |
I respectfully disagree. There's many reasons. C++ Standard Library and C++/WinRT aren't always available or provide sufficient functionality. If you're referring specifically to C++ consuming WinRT APIs I might be more agreeable (if you don't mind exceptions) |
You may be right, but there seems to be a lot of overlap. I'd love to see an @oldnewthing style table comparing STL, C++/WinRT, WIL to see what value WIL actually provides over and above STL and C++/WinRT. |
See https://github.com/microsoft/wil/wiki for documentation. The main things that we use WIL for are:
There is some overlap, such as Unfortunately we can't simply replace Code that started its life inside Windows and is being moved into Project Reunion may similarly start as a mix of the two patterns until we can convert them forward to fully modern C++ with minimal use of result-oriented flow. I do agree that we should switch to |
Several Microsoft samples like https://github.com/microsoft/Project-Reunion-Samples make use of wil, which most likely refers to https://github.com/microsoft/wil.
No documentation is available at MSDN, nor the rationale why it is being used instead of the winrt namespace, for example wil::com_ptr<>() instead of winrt::com_ptr<>().
This makes it even harder to make sense of what C++/WinRT is all about, now that C++/CX nice tooling has been taken away from us.
The text was updated successfully, but these errors were encountered: