From d8a6aaa40b20f0ab869cd98eee3cdbfec710f35d Mon Sep 17 00:00:00 2001 From: hsutter Date: Wed, 3 Jul 2019 08:33:09 -0700 Subject: [PATCH] Restored two more edits --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index aaaf8b7..67d5ccb 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -7909,7 +7909,7 @@ It also ensures exception safety in complex expressions. ##### Example - unique_ptr p {new Foo{7}}; // OK: but repetitive + unique_ptr p {new Foo{7}}; // OK: but repetitive auto q = make_unique(7); // Better: no repetition of Foo @@ -8727,7 +8727,7 @@ Switching on an enumeration is common and the compiler can warn against unusual } } -Such off-by-one `switch`statements are often the results of an added enumerator and insufficient testing. +Such off-by-one `switch`-statements are often the results of an added enumerator and insufficient testing. ##### Enforcement