Ver código fonte

type_info: cleanup

skypjack 1 mês atrás
pai
commit
bace149e36
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      src/entt/core/type_info.hpp

+ 1 - 2
src/entt/core/type_info.hpp

@@ -103,11 +103,10 @@ struct type_hash final {
      * @brief Returns the numeric representation of a given type.
      * @brief Returns the numeric representation of a given type.
      * @return The numeric representation of the given type.
      * @return The numeric representation of the given type.
      */
      */
-#if defined ENTT_PRETTY_FUNCTION
     [[nodiscard]] static constexpr id_type value() noexcept {
     [[nodiscard]] static constexpr id_type value() noexcept {
+#if defined ENTT_PRETTY_FUNCTION
         return internal::type_hash<Type>(0);
         return internal::type_hash<Type>(0);
 #else
 #else
-    [[nodiscard]] static constexpr id_type value() noexcept {
         return type_index<Type>::value();
         return type_index<Type>::value();
 #endif
 #endif
     }
     }