Browse Source

meta: move node as it ought to be

Michele Caini 1 year ago
parent
commit
1175bdca62
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/meta/meta.hpp

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

@@ -775,7 +775,7 @@ struct [[deprecated("use meta_custom instead")]] meta_prop {
      * @param curr The underlying node with which to construct the instance.
      */
     meta_prop(const meta_ctx &area, internal::meta_prop_node curr) noexcept
-        : node{curr},
+        : node{std::move(curr)},
           ctx{&area} {}
 
     /**