Browse Source

entity: make return type of to_integral explicit

Michele Caini 4 years ago
parent
commit
72776d6fb6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/entity/entity.hpp

+ 1 - 1
src/entt/entity/entity.hpp

@@ -136,7 +136,7 @@ public:
  * @return The integral representation of the given value.
  * @return The integral representation of the given value.
  */
  */
 template<typename Entity>
 template<typename Entity>
-[[nodiscard]] constexpr auto to_integral(const Entity entity) ENTT_NOEXCEPT {
+[[nodiscard]] constexpr typename entt_traits<Entity>::entity_type to_integral(const Entity entity) ENTT_NOEXCEPT {
     return entt_traits<Entity>::to_integral(entity);
     return entt_traits<Entity>::to_integral(entity);
 }
 }