mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 21:25:13 +00:00
d079f41c26
Fixes #509. The move policy was already set for rvalues in PR #473, but this only applied to directly cast user-defined types. The problem is that STL containers cast values indirectly and the rvalue information is lost. Therefore the move policy was not set correctly. This commit fixes it. This also makes an additional adjustment to remove the `copy` policy exception: rvalues now always use the `move` policy. This is also safe for copy-only rvalues because the `move` policy has an internal fallback to copying. |
||
---|---|---|
.. | ||
clang@254c7a91e3 | ||
check-style.sh | ||
FindEigen3.cmake | ||
FindPythonLibsNew.cmake | ||
libsize.py | ||
mkdoc.py |