Просмотр исходного кода

meta: removed redundant assert

Michele Caini 5 лет назад
Родитель
Сommit
9fb8939efd
1 измененных файлов с 0 добавлено и 1 удалено
  1. 0 1
      src/entt/meta/meta.hpp

+ 0 - 1
src/entt/meta/meta.hpp

@@ -361,7 +361,6 @@ public:
         node = internal::meta_info<Type>::resolve();
         node = internal::meta_info<Type>::resolve();
 
 
         if constexpr(!std::is_void_v<Type>) {
         if constexpr(!std::is_void_v<Type>) {
-            static_assert(std::is_copy_constructible_v<Type>);
             using traits_type = type_traits<std::remove_cv_t<std::remove_reference_t<Type>>>;
             using traits_type = type_traits<std::remove_cv_t<std::remove_reference_t<Type>>>;
             traits_type::instance(*this, std::forward<Args>(args)...);
             traits_type::instance(*this, std::forward<Args>(args)...);
             destroy_fn = &traits_type::destroy;
             destroy_fn = &traits_type::destroy;