Browse Source

python: missing move in Corrade container bindings.

pull/19/head
Aaron Gokaslan 4 years ago committed by Vladimír Vondruš
parent
commit
ddaf12757f
  1. 2
      src/Corrade/Containers/PythonBindings.h

2
src/Corrade/Containers/PythonBindings.h

@ -45,7 +45,7 @@ template<class T> struct PyArrayViewHolder: std::unique_ptr<T> {
}; };
template<class T> PyArrayViewHolder<T> pyArrayViewHolder(const T& view, pybind11::object owner) { template<class T> PyArrayViewHolder<T> pyArrayViewHolder(const T& view, pybind11::object owner) {
return PyArrayViewHolder<T>{new T{view}, owner}; return PyArrayViewHolder<T>{new T{view}, std::move(owner)};
} }
}} }}

Loading…
Cancel
Save