Przeglądaj źródła

table: fixed operator-> for table iterators

Michele Caini 2 lat temu
rodzic
commit
89c87c6d10
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/entt/entity/table.hpp

+ 1 - 1
src/entt/entity/table.hpp

@@ -88,7 +88,7 @@ public:
     }
 
     [[nodiscard]] constexpr pointer operator->() const noexcept {
-        return std::addressof(operator[](0));
+        return {operator[](0)};
     }
 
     [[nodiscard]] constexpr reference operator*() const noexcept {