From 4b1d513cd69985807f776f2d94bdea1881d259ac Mon Sep 17 00:00:00 2001 From: lisyarus Date: Thu, 25 Jan 2024 22:27:24 +0300 Subject: [PATCH] Add ecs::handle comparison operators --- libs/ecs/include/psemek/ecs/handle.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/ecs/include/psemek/ecs/handle.hpp b/libs/ecs/include/psemek/ecs/handle.hpp index 21fc2cae..009db51a 100644 --- a/libs/ecs/include/psemek/ecs/handle.hpp +++ b/libs/ecs/include/psemek/ecs/handle.hpp @@ -11,6 +11,9 @@ namespace psemek::ecs { detail::entity_id id; detail::entity_epoch epoch; + + friend bool operator == (handle const &, handle const &) = default; + friend auto operator <=> (handle const &, handle const &) = default; }; inline std::ostream & operator << (std::ostream & out, handle const & handle)