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

storage: avoid warnings/errors due to name conflicts

skypjack 5 месяцев назад
Родитель
Сommit
a2c2422fdf
1 измененных файлов с 6 добавлено и 6 удалено
  1. 6 6
      src/entt/entity/storage.hpp

+ 6 - 6
src/entt/entity/storage.hpp

@@ -104,19 +104,19 @@ public:
         return operator[](0);
     }
 
-    template<typename Other, auto Page>
-    [[nodiscard]] constexpr std::ptrdiff_t operator-(const storage_iterator<Other, Page> &other) const noexcept {
+    template<typename Other, auto Arg>
+    [[nodiscard]] constexpr std::ptrdiff_t operator-(const storage_iterator<Other, Arg> &other) const noexcept {
         // intentionally reversed due to backward iteration
         return other.offset - offset;
     }
 
-    template<typename Other, auto Page>
-    [[nodiscard]] constexpr bool operator==(const storage_iterator<Other, Page> &other) const noexcept {
+    template<typename Other, auto Arg>
+    [[nodiscard]] constexpr bool operator==(const storage_iterator<Other, Arg> &other) const noexcept {
         return offset == other.offset;
     }
 
-    template<typename Other, auto Page>
-    [[nodiscard]] constexpr auto operator<=>(const storage_iterator<Other, Page> &other) const noexcept {
+    template<typename Other, auto Arg>
+    [[nodiscard]] constexpr auto operator<=>(const storage_iterator<Other, Arg> &other) const noexcept {
         // intentionally reversed due to backward iteration
         return other.offset <=> offset;
     }