From 4b6e6eb1904bcdafb82a10ecacfd1bfb46c8c838 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 27 Jul 2017 03:40:16 +0200 Subject: [PATCH] Fix example in C.61 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 550c5a3..ae3c9de 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -5730,7 +5730,7 @@ After a copy `x` and `y` can be independent objects (value semantics, the way no X::X(const X& a) :p{new T[a.sz]}, sz{a.sz} { - copy(a.p, a.p + sz, a.p); + copy(a.p, a.p + sz, p); } X x;