[PR #12138] [MERGED] Fix compilation under VS 2022.1 #28855

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/12138
Author: @lhecker
Created: 1/11/2022
Status: Merged
Merged: 1/11/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/vs2022.1-fixup


📝 Commits (3)

📊 Changes

2 files changed (+5 additions, -1 deletions)

View changed files

📝 .github/actions/spelling/expect/expect.txt (+1 -0)
📝 src/inc/til/coalesce.h (+4 -1)

📄 Description

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)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/12138 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 1/11/2022 **Status:** ✅ Merged **Merged:** 1/11/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/vs2022.1-fixup` --- ### 📝 Commits (3) - [`15d0d0a`](https://github.com/microsoft/terminal/commit/15d0d0a0f4dba88628d358f8504f0c6efe59fadb) Fix compilation under VS 2022.1 - [`5cd20da`](https://github.com/microsoft/terminal/commit/5cd20da8c121b07352f0b0bdfc0a481d8e91756f) Fix spelling - [`6cfbca7`](https://github.com/microsoft/terminal/commit/6cfbca70e936a8b61c162dec1193923aa318c577) Address feedback ### 📊 Changes **2 files changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.github/actions/spelling/expect/expect.txt` (+1 -0) 📝 `src/inc/til/coalesce.h` (+4 -1) </details> ### 📄 Description 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) ✅ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:31:13 +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#28855