From d30312f516d74f0c098a84eddbd7f0057513aee6 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 24 Feb 2023 15:11:19 +0100 Subject: [PATCH] entity/helper: add missing include, drop unnecessary traits calls --- src/entt/entity/helper.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/entt/entity/helper.hpp b/src/entt/entity/helper.hpp index 3cecd6c03..4548ce988 100644 --- a/src/entt/entity/helper.hpp +++ b/src/entt/entity/helper.hpp @@ -3,6 +3,7 @@ #include #include +#include #include "../core/fwd.hpp" #include "../core/type_traits.hpp" #include "../signal/delegate.hpp" @@ -27,7 +28,7 @@ public: /*! @brief Type of registry to convert. */ using registry_type = Registry; /*! @brief Underlying entity identifier. */ - using entity_type = std::remove_const_t; + using entity_type = typename registry_type::entity_type; /** * @brief Constructs a converter for a given registry. @@ -70,7 +71,7 @@ public: /*! @brief Type of registry to convert. */ using registry_type = Registry; /*! @brief Underlying entity identifier. */ - using entity_type = std::remove_const_t; + using entity_type = typename registry_type::entity_type; /** * @brief Constructs a converter for a given registry.