From 211f6cfe3ade45e3e1a1e07cc5405d684f58d9eb Mon Sep 17 00:00:00 2001 From: 5chmidti <44101708+5chmidti@users.noreply.github.com> Date: Thu, 13 May 2021 20:39:14 +0200 Subject: [PATCH] Fix C.127 example (#1775) - fix for D being abstract but trying to create an object of type D in make_unique() --- CppCoreGuidelines.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 986f3d7..ad747ff 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -7144,6 +7144,7 @@ A class with a virtual function is usually (and in general) used via a pointer t // bad: derived from a class without a virtual destructor struct D : B { string s {"default"}; + // ... }; void use()