Explorar o código

meta: avoid dead code warnings

Michele Caini %!s(int64=2) %!d(string=hai) anos
pai
achega
cfc7f99405
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/entt/meta/container.hpp

+ 2 - 2
src/entt/meta/container.hpp

@@ -173,9 +173,9 @@ struct basic_meta_sequence_container_traits {
                 value ? *static_cast<const typename Type::value_type *>(value) : *static_cast<const std::remove_reference_t<typename Type::const_reference> *>(cref)));
 
             return true;
+        } else {
+            return false;
         }
-
-        return false;
     }
 
     /**