Skip to content

Enhancement: Deprecate winrt::uninit_apartment #20

@YexuanXiao

Description

@YexuanXiao

winrt::uninit_apartment does not adhere to RAII, which makes it very prone to misuse and exception unsafe. There is no need to deprecate winrt::init_apartment for now, as not uninitializing is usually not an issue, and it appears in numerous examples.

Add a class with a destructor instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementAdjust existing featureshelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions