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

meta: move node as it ought to be

Michele Caini 1 год назад
Родитель
Сommit
1175bdca62
1 измененных файлов с 1 добавлено и 1 удалено
  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} {}
 
     /**