diff --git a/include/pybind11/eigen.h b/include/pybind11/eigen.h index 2aefcd33..71fc6f1d 100644 --- a/include/pybind11/eigen.h +++ b/include/pybind11/eigen.h @@ -435,7 +435,7 @@ public: fits = props::conformable(copy); if (!fits || !fits.template stride_compatible()) return false; - copy_or_ref = copy; + copy_or_ref = std::move(copy); } ref.reset();