From 305c4a189f85a3155e920f3469cc7c85a8240448 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 6 Mar 2021 18:53:01 +0000 Subject: Give collection a virtual desctructor --- lib/collection.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/collection.hpp b/lib/collection.hpp index 79c331a..1630fcc 100644 --- a/lib/collection.hpp +++ b/lib/collection.hpp @@ -7,6 +7,8 @@ template class Collection { public: + virtual ~Collection() = default; + using Ptr = std::conditional_t, std::unique_ptr>; using Objects = std::vector; Objects objects; -- cgit v1.2.3