Parcourir la source

meta: drop redundant assert

skypjack il y a 2 ans
Parent
commit
b3c0d91eb3
1 fichiers modifiés avec 0 ajouts et 1 suppressions
  1. 0 1
      src/entt/meta/meta.hpp

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

@@ -1644,7 +1644,6 @@ bool meta_any::set(const id_type id, Type &&value) {
     if(node.conversion_helper && (type.is_arithmetic() || type.is_enum())) {
     if(node.conversion_helper && (type.is_arithmetic() || type.is_enum())) {
         // exploits the fact that arithmetic types and enums are also default constructible
         // exploits the fact that arithmetic types and enums are also default constructible
         auto other = type.construct();
         auto other = type.construct();
-        ENTT_ASSERT(other.node.conversion_helper, "Conversion helper not found");
         const auto value = node.conversion_helper(nullptr, data());
         const auto value = node.conversion_helper(nullptr, data());
         other.node.conversion_helper(other.data(), &value);
         other.node.conversion_helper(other.data(), &value);
         return other;
         return other;