Browse Source

minor changes

Michele Caini 6 years ago
parent
commit
d41f2c138b
1 changed files with 2 additions and 1 deletions
  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>\
         : 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>);\
     };