From 3a320fdf53ea9bad1075d2a0f6f368072f84e4b6 Mon Sep 17 00:00:00 2001 From: Breno Rodrigues Guimaraes Date: Thu, 26 Oct 2017 19:37:29 -0700 Subject: [PATCH] Add virtual destructor to base class --- CppCoreGuidelines.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 4436b57..3685c39 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -6530,6 +6530,7 @@ Such as on an ABI (link) boundary. ##### Example struct Device { + virtual ~Device() = default; virtual void write(span outbuf) = 0; virtual void read(span inbuf) = 0; };