[PR #12138] Fix compilation under VS 2022.1 #28860

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

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

State: closed
Merged: Yes


This commit fixes the compilation under VS 2022.1 and clang, by evaluating a
static_assert(false) safety check only when the template is instantiated.
This is achieved by making the assertion depend on the template parameter.

Validation Steps Performed

  • Host.EXE compiles under VS 17.1.0 Preview 3.0 (32110.40.d17.1)
**Original Pull Request:** https://github.com/microsoft/terminal/pull/12138 **State:** closed **Merged:** Yes --- This commit fixes the compilation under VS 2022.1 and clang, by evaluating a `static_assert(false)` safety check only when the template is instantiated. This is achieved by making the assertion depend on the template parameter. ## Validation Steps Performed * Host.EXE compiles under VS 17.1.0 Preview 3.0 (32110.40.d17.1) ✅
claunia added the pull-request label 2026-01-31 09:31:15 +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#28860