entity/helper: add missing include, drop unnecessary traits calls

This commit is contained in:
Michele Caini
2023-02-24 15:11:19 +01:00
parent 30772848e6
commit d30312f516

View File

@@ -3,6 +3,7 @@
#include <memory>
#include <type_traits>
#include <utility>
#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<typename registry_type::entity_type>;
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<typename registry_type::entity_type>;
using entity_type = typename registry_type::entity_type;
/**
* @brief Constructs a converter for a given registry.