diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 6696e14..5a0c752 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -5010,7 +5010,7 @@ Users will be surprised if copy/move construction and copy/move assignment do lo shared_ptr p; public: Silly(const Silly& a) : p(make_shared()) { *p = *a.p; } // deep copy - Silly& operator=(const Silly& a) { p = a.p; } // shallow copy + Silly& operator=(const Silly& a) { p = a.p; return *this; } // shallow copy // ... };