mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
the copy ctor typo and comment fixes from #1125
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user