From 95492efea75ed144794273766d9b18dc2117de9f Mon Sep 17 00:00:00 2001 From: lisyarus Date: Fri, 13 Sep 2024 23:27:48 +0300 Subject: [PATCH] Add copy assignment to ecs::accessor --- libs/ecs/include/psemek/ecs/accessor.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/ecs/include/psemek/ecs/accessor.hpp b/libs/ecs/include/psemek/ecs/accessor.hpp index f998d375..5f0e762d 100644 --- a/libs/ecs/include/psemek/ecs/accessor.hpp +++ b/libs/ecs/include/psemek/ecs/accessor.hpp @@ -14,10 +14,14 @@ namespace psemek::ecs */ accessor() = default; - /** Copy the accessor. + /** Copy-construct the accessor. */ accessor(accessor const &) = default; + /** Copy-assign the accessor. + */ + accessor & operator = (accessor const & other) = default; + /** Check if this accessor is valid, i.e. refers to an entity. * * @return True if the accessor is valid, false otherwise