aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/ComponentManager.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-12 20:54:07 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-12 20:54:07 +0200
commit5d041cce13da66aa3457d236579a9ac90ebf7618 (patch)
tree2107c4cad158bb3875faa838c12e064d6aba03f2 /src/crepe/ComponentManager.h
parent579824011d5e8776e2079d6624a39535517760ff (diff)
fix constructor/destructor member visibility for component manager
Diffstat (limited to 'src/crepe/ComponentManager.h')
-rw-r--r--src/crepe/ComponentManager.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crepe/ComponentManager.h b/src/crepe/ComponentManager.h
index 2ab9dc8..eab9b45 100644
--- a/src/crepe/ComponentManager.h
+++ b/src/crepe/ComponentManager.h
@@ -44,7 +44,8 @@ public:
std::vector<std::reference_wrapper<T>> get_components_by_type() const;
private:
- ComponentManager() = default;
+ ComponentManager();
+ virtual ~ComponentManager();
/*
* The std::unordered_map<std::type_index, std::vector<std::vector<std::unique_ptr<Component>>>> below might seem a bit strange, let me explain this structure: