From 97797870ad24603a002f46749cd6621854de7062 Mon Sep 17 00:00:00 2001 From: Yaro Shkvorets Date: Wed, 6 May 2020 08:41:10 -0400 Subject: [PATCH] code typo in R.20 (#1619) --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 5ebd539..ac46039 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -9494,8 +9494,8 @@ Consider: { X x; X* p1 { new X }; // see also ??? - unique_ptr p2 { new X }; // unique ownership; see also ??? - shared_ptr p3 { new X }; // shared ownership; see also ??? + unique_ptr p2 { new X }; // unique ownership; see also ??? + shared_ptr p3 { new X }; // shared ownership; see also ??? auto p4 = make_unique(); // unique_ownership, preferable to the explicit use "new" auto p5 = make_shared(); // shared ownership, preferable to the explicit use "new" }