From 5f393d53afcdb0f9bf7c257e4fad4aa3257753ba Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Mon, 17 Jan 2022 06:00:25 +0100 Subject: [PATCH] Promote C++20 (#1880) The documentation still mentions C++17, while C++20 is already out for some time. So I updated the introduction paragraphs. --- CppCoreGuidelines.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index f2a733d..b9debae 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -187,7 +187,7 @@ You can look at design concepts used to express the rules: This document is a set of guidelines for using C++ well. The aim of this document is to help people to use modern C++ effectively. -By "modern C++" we mean effective use of the ISO C++ standard (currently C++17, but almost all of our recommendations also apply to C++14 and C++11). +By "modern C++" we mean effective use of the ISO C++ standard (currently C++20, but almost all of our recommendations also apply to C++17, C++14 and C++11). In other words, what would you like your code to look like in 5 years' time, given that you can start now? In 10 years' time? The guidelines are focused on relatively high-level issues, such as interfaces, resource management, memory management, and concurrency. @@ -224,7 +224,7 @@ We plan to modify and extend this document as our understanding improves and the # In: Introduction -This is a set of core guidelines for modern C++ (currently C++17) taking likely future enhancements and ISO Technical Specifications (TSs) into account. +This is a set of core guidelines for modern C++ (currently C++20 and C++17) taking likely future enhancements and ISO Technical Specifications (TSs) into account. The aim is to help C++ programmers to write simpler, more efficient, more maintainable code. Introduction summary: @@ -594,7 +594,7 @@ In such cases, control their (dis)use with an extension of these Coding Guidelin ##### Enforcement -Use an up-to-date C++ compiler (currently C++17, C++14, or C++11) with a set of options that do not accept extensions. +Use an up-to-date C++ compiler (currently C++20, C++17, C++14, or C++11) with a set of options that do not accept extensions. ### P.3: Express intent