From 40109e9ae4e397cd5ab5c15fde58debbdfbfacd6 Mon Sep 17 00:00:00 2001 From: skypjack Date: Fri, 9 Jan 2026 15:35:46 +0100 Subject: [PATCH] group: internal changes (coding style) --- src/entt/entity/group.hpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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;