Browse Source

storage: avoid warnings/errors due to name conflicts

skypjack 2 months ago
parent
commit
a2c2422fdf
1 changed files with 6 additions and 6 deletions
  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;
     }