From 88a9ba0640a33bc7deb4bfdc5ae1b076aa976612 Mon Sep 17 00:00:00 2001 From: hsutter Date: Thu, 10 Jan 2019 11:11:08 -0800 Subject: [PATCH] Closes #1311 --- CppCoreGuidelines.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 7b50a4d..8c6f044 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -10054,9 +10054,9 @@ Readability. Minimize resource retention. * Flag loop variables declared before the loop and not used after the loop * (hard) Flag loop variables declared before the loop and used after the loop for an unrelated purpose. -##### C++17 example +##### C++17 and C++20 example -Note: C++17 also adds `if` and `switch` initializer statements. These require C++17 support. +Note: C++17 and C++20 also add `if`, `switch`, and range-`for` initializer statements. These require C++17 and C++20 support. map mymap; @@ -10066,7 +10066,7 @@ Note: C++17 also adds `if` and `switch` initializer statements. These require C+ // ... } // result is destroyed here -##### C++17 enforcement (if using a C++17 compiler) +##### C++17 and C++20 enforcement (if using a C++17 or C++20 compiler) * Flag selection/loop variables declared before the body and not used after the body * (hard) Flag selection/loop variables declared before the body and used after the body for an unrelated purpose.