-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
When attempting to initialize a null winrt::hstring using the documented syntax:
winrt::hstring{ nullptr }
I receive - Error C228 'winrt::hstring::hstring(std::nullptr_t)': attempting to reference a deleted function.
If I initialize it using an empty string: L"", which is identical to null, it works fine. Is this the correct way to initialize a null winrt::hstring? Or is this unintended behavior?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 853d8f9e-c1eb-7fe8-4ce2-a476d8cb1fc9
- Version Independent ID: 924da36c-5517-190d-edda-5bd500830d81
- Content: Move to C++/WinRT from C++/CX - Windows UWP applications
- Content Source: windows-apps-src/cpp-and-winrt-apis/move-to-winrt-from-cx.md
- Product: uwp
- Technology: platform
- GitHub Login: @stevewhims
- Microsoft Alias: stwhi
Metadata
Metadata
Assignees
Labels
No labels