瀏覽代碼

table: fixed operator-> for table iterators

Michele Caini 2 年之前
父節點
當前提交
89c87c6d10
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {