[PR #12658] [MERGED] Fix compilation under and enable C++20 #29152

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/12658
Author: @lhecker
Created: 3/10/2022
Status: ✅ Merged
Merged: 3/10/2022
Merged by: @undefined

Base: main ← Head: dev/lhecker/issue-12510-cpp20


📝 Commits (1)

  • e4003ae Fix compilation under and enable C++20

📊 Changes

14 files changed (+151 additions, -112 deletions)

View changed files

📝 dep/CLI11/CLI11.hpp (+107 -69)
📝 dep/CLI11/README.md (+2 -3)
📝 src/cascadia/LocalTests_SettingsModel/ColorSchemeTests.cpp (+1 -1)
📝 src/cascadia/LocalTests_SettingsModel/TerminalSettingsTests.cpp (+4 -4)
📝 src/cascadia/TerminalApp/AppLogic.cpp (+1 -1)
📝 src/cascadia/TerminalApp/TabBase.cpp (+1 -1)
📝 src/cascadia/TerminalApp/TerminalTab.cpp (+2 -2)
📝 src/cascadia/TerminalControl/TermControl.cpp (+1 -1)
📝 src/cascadia/TerminalSettingsModel/FileUtils.cpp (+1 -1)
📝 src/common.build.pre.props (+2 -1)
📝 src/host/ft_host/InitTests.cpp (+1 -1)
📝 src/inc/til/bit.h (+1 -3)
📝 src/inc/til/enumset.h (+8 -7)
📝 src/terminal/parser/ft_fuzzer/fuzzing_directed.h (+19 -17)

📄 Description

This commit enables /std:c++20 for local development under VS17.
Our CIs will continue to use VS16 and C++17 for now in order to reduce
the likelihood of regressions during the current development cycle.
It's expected that we'll migrate to VS17 soon, as this
is what conhost is already being built with anyways.

PR Checklist

Validation Steps Performed

  • Everything compiles under /std:c++20 ✅

🔄 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/12658 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 3/10/2022 **Status:** ✅ Merged **Merged:** 3/10/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/issue-12510-cpp20` --- ### 📝 Commits (1) - [`e4003ae`](https://github.com/microsoft/terminal/commit/e4003ae8a5e27199bd5f743097435e9b7e962432) Fix compilation under and enable C++20 ### 📊 Changes **14 files changed** (+151 additions, -112 deletions) <details> <summary>View changed files</summary> 📝 `dep/CLI11/CLI11.hpp` (+107 -69) 📝 `dep/CLI11/README.md` (+2 -3) 📝 `src/cascadia/LocalTests_SettingsModel/ColorSchemeTests.cpp` (+1 -1) 📝 `src/cascadia/LocalTests_SettingsModel/TerminalSettingsTests.cpp` (+4 -4) 📝 `src/cascadia/TerminalApp/AppLogic.cpp` (+1 -1) 📝 `src/cascadia/TerminalApp/TabBase.cpp` (+1 -1) 📝 `src/cascadia/TerminalApp/TerminalTab.cpp` (+2 -2) 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+1 -1) 📝 `src/cascadia/TerminalSettingsModel/FileUtils.cpp` (+1 -1) 📝 `src/common.build.pre.props` (+2 -1) 📝 `src/host/ft_host/InitTests.cpp` (+1 -1) 📝 `src/inc/til/bit.h` (+1 -3) 📝 `src/inc/til/enumset.h` (+8 -7) 📝 `src/terminal/parser/ft_fuzzer/fuzzing_directed.h` (+19 -17) </details> ### 📄 Description This commit enables `/std:c++20` for local development under VS17. Our CIs will continue to use VS16 and C++17 for now in order to reduce the likelihood of regressions during the current development cycle. It's expected that we'll migrate to VS17 soon, as this is what conhost is already being built with anyways. ## PR Checklist * [x] Closes #12510 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * Everything compiles under `/std:c++20` ✅ --- <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:33:09 +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#29152