diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index e472f18..a5b8c56 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -6084,7 +6084,7 @@ A class with a virtual function is usually (and in general) used via a pointer t void use() { - auto p = make_unique(); + unique_ptr p = make_unique(); // ... } // undefined behavior. May call B::~B only and leak the string