Merge pull request #1009 from bgianinetti/patch-1

Fix example in C.61
This commit is contained in:
Gabriel Dos Reis
2017-07-31 11:11:11 -07:00
committed by GitHub

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)
: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;