Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/Guide/FORMATTING.md
diff options
context:
space:
mode:
authorLeitwolf112026-10-31 13:01:04 +0300
committerLeitwolf112026-10-31 13:01:04 +0300
commit1f5458322669301f62599c1ec5dacb77b5dc2d8d (patch)
tree7e32402fa9c06014328a27d7972c2fb1a9484352 /Guide/FORMATTING.md
parent8d1fb4807edc7920fbecd0554c9c61625827e19c (diff)
downloadprogmasoft-cpp-docs/cpp17-and-cpp20.tar.gz
Cover C++17 as well as C++20docs/cpp17-and-cpp20
A project now picks one version. C++20 stays the default, and C++17 is for libraries meant for other people's projects, because it is still the widest common target and works in every later standard. Section 5.13 gives the C++17 form of each C++20 feature the guide uses and the checks such a project needs: CI in the versions it promises, with each compiler, and headers that compile in default compiler modes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'Guide/FORMATTING.md')
-rw-r--r--Guide/FORMATTING.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/Guide/FORMATTING.md b/Guide/FORMATTING.md
index 80a355c..239ee9f 100644
--- a/Guide/FORMATTING.md
+++ b/Guide/FORMATTING.md
@@ -62,7 +62,7 @@ CI, because two versions can format the same file differently.
---
Language: Cpp
BasedOnStyle: LLVM
-Standard: c++20
+Standard: c++20 # c++17 in a C++17 project
UseTab: Never
IndentWidth: 4