From dc5ce5930fc1c697cc163c23391fcf627b52ec54 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Mon, 13 Mar 2017 12:49:10 -0300 Subject: [PATCH] Use move assignment for eigen ref copy This won't affect much, but makes the code consistent with the non-copying branch. --- include/pybind11/eigen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();