Просмотр исходного кода

group: internal changes (coding style)

skypjack 1 месяц назад
Родитель
Сommit
40109e9ae4
1 измененных файлов с 4 добавлено и 7 удалено
  1. 4 7
      src/entt/entity/group.hpp

+ 4 - 7
src/entt/entity/group.hpp

@@ -73,19 +73,16 @@ public:
         return it;
     }
 
-    template<typename... Lhs, typename... Rhs>
-    friend constexpr bool operator==(const extended_group_iterator<Lhs...> &, const extended_group_iterator<Rhs...> &) noexcept;
+    template<typename... Args>
+    [[nodiscard]] constexpr bool operator==(const extended_group_iterator<Args...> &other) const noexcept {
+        return it == other.it;
+    }
 
 private:
     It it;
     std::tuple<Owned *..., Get *...> pools;
 };
 
-template<typename... Lhs, typename... Rhs>
-[[nodiscard]] constexpr bool operator==(const extended_group_iterator<Lhs...> &lhs, const extended_group_iterator<Rhs...> &rhs) noexcept {
-    return lhs.it == rhs.it;
-}
-
 struct group_descriptor {
     using size_type = std::size_t;
     virtual ~group_descriptor() = default;