Prechádzať zdrojové kódy

table: fixed operator-> for table iterators

Michele Caini 1 rok pred
rodič
commit
89c87c6d10
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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 {