mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +03:00
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user