mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
the copy ctor typo and comment fixes from #1125
This commit is contained in:
parent
15ca9d220c
commit
e3f753ed14
|
@ -5690,9 +5690,9 @@ After a copy `x` and `y` can be independent objects (value semantics, the way no
|
|||
class X2 { // OK: pointer semantics
|
||||
public:
|
||||
X2();
|
||||
X2(const X&) = default; // shallow copy
|
||||
X2(const X2&) = default; // shallow copy
|
||||
~X2() = default;
|
||||
void modify(); // change the value of X
|
||||
void modify(); // change the pointed-to value
|
||||
// ...
|
||||
private:
|
||||
T* p;
|
||||
|
|
Loading…
Reference in New Issue
Block a user