[PR #10264] Enable winrt::make<> detection #27970

Open
opened 2026-01-31 09:25:27 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/10264

State: closed
Merged: Yes


C++/WinRT has a way to ensure that we use make<> instead of allocating
WinRT objects on the stack, but until 10.0.19041 the XAML compiler
generated code that violated that rule.

Because of how make detection is implemented, it must create a derived
type (and so WinRT implementation types can't be final).

**Original Pull Request:** https://github.com/microsoft/terminal/pull/10264 **State:** closed **Merged:** Yes --- C++/WinRT has a way to ensure that we use `make<>` instead of allocating WinRT objects on the stack, but until 10.0.19041 the XAML compiler generated code that violated that rule. Because of how make detection is implemented, it must create a derived type (and so WinRT implementation types can't be `final`).
claunia added the pull-request label 2026-01-31 09:25:27 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27970