diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 7a02c2b..f5dad05 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -4877,7 +4877,7 @@ The default copy operation will just copy the `p1.p` into `p2.p` leading to a do void use(Smart_ptr3 p1) { - auto p2 = p1; // error: double deletion + auto p2 = p1; // OK: no double deletion } ##### Note