Michele Caini 6 lat temu
rodzic
commit
d41f2c138b
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/entt/core/type_traits.hpp

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

@@ -216,7 +216,8 @@ constexpr auto is_named_type_v = is_named_type<Type>::value;
     struct entt::named_type_traits<type>\
     struct entt::named_type_traits<type>\
         : std::integral_constant<ENTT_ID_TYPE, entt::basic_hashed_string<std::remove_cv_t<std::remove_pointer_t<std::decay_t<decltype(#type)>>>>{#type}>\
         : std::integral_constant<ENTT_ID_TYPE, entt::basic_hashed_string<std::remove_cv_t<std::remove_pointer_t<std::decay_t<decltype(#type)>>>>{#type}>\
     {\
     {\
-        static_assert(std::is_same_v<std::decay_t<type>, type>);\
+        static_assert(std::is_same_v<std::remove_cv_t<type>, type>);\
+        static_assert(std::is_object_v<type>);\
     };
     };