diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 56e2533..d0f1c4b 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -4625,7 +4625,7 @@ After a copy `x` and `y` can be independent objects (value semantics, the way no } X::X(const X& a) - :p{new T}, sz{a.sz} + :p{new T[a.sz]}, sz{a.sz} { copy(a.p, a.p + sz, a.p); }