commit | dc5ce5930fc1c697cc163c23391fcf627b52ec54 | [log] [tgz] |
---|---|---|
author | Jason Rhinelander <jason@imaginary.ca> | Mon Mar 13 12:49:10 2017 -0300 |
committer | Jason Rhinelander <jason@imaginary.ca> | Mon Mar 13 12:49:10 2017 -0300 |
tree | 4c6130fbcc40f977f759dc81f78ba40df30e3746 | |
parent | 139a082b0edfd0e2dcf0b9332b1f4f5358cd9568 [diff] |
Use move assignment for eigen ref copy This won't affect much, but makes the code consistent with the non-copying branch.
diff --git a/include/pybind11/eigen.h b/include/pybind11/eigen.h index 2aefcd3..71fc6f1 100644 --- a/include/pybind11/eigen.h +++ b/include/pybind11/eigen.h
@@ -435,7 +435,7 @@ fits = props::conformable(copy); if (!fits || !fits.template stride_compatible<props>()) return false; - copy_or_ref = copy; + copy_or_ref = std::move(copy); } ref.reset();