Skip to content

Bug: Cannot winrt::box_value a wchar_t #1566

@HO-COOH

Description

@HO-COOH

Version

No response

Summary

From this documentation, it should be able to expose a Char type from the idl, but doing this will cause a compile error:

        static_assert(impl::has_category_v<T>, "T must be WinRT type.");

Reproducible example

Use this idl

    [default_interface]
    runtimeclass MainPage : Windows.UI.Xaml.Controls.Page
    {
        MainPage();
        Char MyProperty;
    }

Expected behavior

Compiles

Actual behavior

No response

Additional comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions