Ver Fonte

entity: make return type of to_integral explicit

Michele Caini há 4 anos atrás
pai
commit
72776d6fb6
1 ficheiros alterados com 1 adições e 1 exclusões
  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.
  */
 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);
 }