mirror of
https://github.com/pybind/pybind11.git
synced 2024-12-01 17:37:15 +00:00
af66246fb6
``` /__w/pybind11/pybind11/include/pybind11/cast.h:918:44: error: std::move of the variable 'v_h' of the trivially-copyable type 'pybind11::detail::value_and_holder' has no effect [performance-move-const-arg,-warnings-as-errors] return load_value_smart_holder(std::move(v_h)); ^ /__w/pybind11/pybind11/include/pybind11/cast.h:911:53: note: consider changing the 1st parameter of 'load_value_smart_holder' from 'pybind11::detail::value_and_holder &&' to 'const pybind11::detail::value_and_holder &' bool load_value_smart_holder(value_and_holder &&v_h) { ^ /__w/pybind11/pybind11/include/pybind11/cast.h:920:38: error: std::move of the variable 'v_h' of the trivially-copyable type 'pybind11::detail::value_and_holder' has no effect [performance-move-const-arg,-warnings-as-errors] return load_value_shared_ptr(std::move(v_h)); ^ /__w/pybind11/pybind11/include/pybind11/cast.h:895:51: note: consider changing the 1st parameter of 'load_value_shared_ptr' from 'pybind11::detail::value_and_holder &&' to 'const pybind11::detail::value_and_holder &' bool load_value_shared_ptr(value_and_holder &&v_h) { ^ ``` |
||
---|---|---|
.. | ||
pybind11 |