summaryrefslogtreecommitdiff
path: root/lib/collection.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/collection.hpp')
-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;