Explorar el Código

meta: drop unnecessary move

skypjack hace 2 años
padre
commit
95643b6a56
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/entt/meta/meta.hpp

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

@@ -1650,7 +1650,7 @@ bool meta_any::set(const id_type id, Type &&value) {
 
 inline bool meta_any::assign(const meta_any &other) {
     auto value = other.allow_cast({*ctx, node});
-    return value && storage.assign(std::move(value.storage));
+    return value && storage.assign(value.storage);
 }
 
 inline bool meta_any::assign(meta_any &&other) {