Fix example in C.61

This commit is contained in:
Ben 2017-07-27 03:40:16 +02:00 committed by GitHub
parent 150744a8d3
commit 4b6e6eb190

View File

@ -5730,7 +5730,7 @@ After a copy `x` and `y` can be independent objects (value semantics, the way no
X::X(const X& a) X::X(const X& a)
:p{new T[a.sz]}, sz{a.sz} :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; X x;