From 89c87c6d1067e52bd55cda5fa8764bd69ea55091 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 29 Apr 2024 08:59:57 +0200 Subject: [PATCH] table: fixed operator-> for table iterators --- src/entt/entity/table.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/entity/table.hpp b/src/entt/entity/table.hpp index c57eae5e6..499c302cd 100644 --- a/src/entt/entity/table.hpp +++ b/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 {