skypjack 1 месяц назад
Родитель
Сommit
bace149e36
1 измененных файлов с 1 добавлено и 2 удалено
  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.
      * @return The numeric representation of the given type.
      */
-#if defined ENTT_PRETTY_FUNCTION
     [[nodiscard]] static constexpr id_type value() noexcept {
+#if defined ENTT_PRETTY_FUNCTION
         return internal::type_hash<Type>(0);
 #else
-    [[nodiscard]] static constexpr id_type value() noexcept {
         return type_index<Type>::value();
 #endif
     }