Add copy assignment to ecs::accessor

This commit is contained in:
Nikita Lisitsa 2024-09-13 23:27:48 +03:00
parent d66092b86d
commit 95492efea7

View file

@ -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