From ddaf12757f051bdbbf52889ccba801219c3a282b Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Wed, 14 Sep 2022 09:45:32 -0700 Subject: [PATCH] python: missing move in Corrade container bindings. --- src/Corrade/Containers/PythonBindings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Corrade/Containers/PythonBindings.h b/src/Corrade/Containers/PythonBindings.h index 2b0af11..76bd510 100644 --- a/src/Corrade/Containers/PythonBindings.h +++ b/src/Corrade/Containers/PythonBindings.h @@ -45,7 +45,7 @@ template struct PyArrayViewHolder: std::unique_ptr { }; template PyArrayViewHolder pyArrayViewHolder(const T& view, pybind11::object owner) { - return PyArrayViewHolder{new T{view}, owner}; + return PyArrayViewHolder{new T{view}, std::move(owner)}; } }}