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
When cppwinrt string types are being used wil::zwstring_view is unfortunately not a drop-in replacement for std::wstring_view. There is no conversion operator from winrt::hstring to wil::zwstring_view so compilation fails.
This can be manually worked around by in-place constructing a wil::zwstring_view with the c_str() and .size() values from winrt::hstring. That is ugly, though. It would be better if it was automatic.
The text was updated successfully, but these errors were encountered:
When cppwinrt string types are being used
wil::zwstring_view
is unfortunately not a drop-in replacement forstd::wstring_view
. There is no conversion operator fromwinrt::hstring
towil::zwstring_view
so compilation fails.This can be manually worked around by in-place constructing a
wil::zwstring_view
with thec_str()
and.size()
values fromwinrt::hstring
. That is ugly, though. It would be better if it was automatic.The text was updated successfully, but these errors were encountered: