Explorar o código

table: fixed operator-> for table iterators

Michele Caini hai 1 ano
pai
achega
89c87c6d10
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {