summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-03-06 18:53:01 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-03-06 18:53:01 +0000
commit305c4a189f85a3155e920f3469cc7c85a8240448 (patch)
tree43aae67ced4a3556fb676b83f73e2ff5730c31d6
parentAdd a basic Doxyfile (diff)
downloadilt-305c4a189f85a3155e920f3469cc7c85a8240448.tar.bz2
ilt-305c4a189f85a3155e920f3469cc7c85a8240448.tar.xz
ilt-305c4a189f85a3155e920f3469cc7c85a8240448.zip
Give collection a virtual desctructor
-rw-r--r--lib/collection.hpp2
1 files changed, 2 insertions, 0 deletions
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<typename Object, bool shared = true> class Collection {
public:
+ virtual ~Collection() = default;
+
using Ptr = std::conditional_t<shared, std::shared_ptr<Object>, std::unique_ptr<Object>>;
using Objects = std::vector<Ptr>;
Objects objects;