mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 16:37:13 +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);
|
||||
if (!fits || !fits.template stride_compatible<props>())
|
||||
return false;
|
||||
copy_or_ref = copy;
|
||||
copy_or_ref = std::move(copy);
|
||||
}
|
||||
|
||||
ref.reset();
|
||||
|
Loading…
Reference in New Issue
Block a user