mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-18 06:30:54 +00:00
Use move assignment for eigen ref copy
This won't affect much, but makes the code consistent with the non-copying branch.
This commit is contained in:
parent
139a082b0e
commit
dc5ce5930f
@ -435,7 +435,7 @@ public:
|
|||||||
fits = props::conformable(copy);
|
fits = props::conformable(copy);
|
||||||
if (!fits || !fits.template stride_compatible<props>())
|
if (!fits || !fits.template stride_compatible<props>())
|
||||||
return false;
|
return false;
|
||||||
copy_or_ref = copy;
|
copy_or_ref = std::move(copy);
|
||||||
}
|
}
|
||||||
|
|
||||||
ref.reset();
|
ref.reset();
|
||||||
|
Loading…
Reference in New Issue
Block a user