diff --git a/src/entt/entity/group.hpp b/src/entt/entity/group.hpp index c19134986..9be090188 100644 --- a/src/entt/entity/group.hpp +++ b/src/entt/entity/group.hpp @@ -73,19 +73,16 @@ public: return it; } - template - friend constexpr bool operator==(const extended_group_iterator &, const extended_group_iterator &) noexcept; + template + [[nodiscard]] constexpr bool operator==(const extended_group_iterator &other) const noexcept { + return it == other.it; + } private: It it; std::tuple pools; }; -template -[[nodiscard]] constexpr bool operator==(const extended_group_iterator &lhs, const extended_group_iterator &rhs) noexcept { - return lhs.it == rhs.it; -} - struct group_descriptor { using size_type = std::size_t; virtual ~group_descriptor() = default;