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.
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.