diff --git a/include/pybind11/functional.h b/include/pybind11/functional.h index b4528cf7ca..53c9e41f2d 100644 --- a/include/pybind11/functional.h +++ b/include/pybind11/functional.h @@ -42,7 +42,7 @@ struct func_handle { // to emulate 'move initialization capture' in C++11 struct func_wrapper_base { func_handle hfunc; - explicit func_wrapper_base(func_handle &&hf) noexcept : hfunc(std::move(hf)) {} + explicit func_wrapper_base(func_handle &&hf) noexcept : hfunc(hf) {} }; template