diff --git a/include/pybind/cast.h b/include/pybind/cast.h index c237429cd..a872214d0 100644 --- a/include/pybind/cast.h +++ b/include/pybind/cast.h @@ -610,7 +610,7 @@ template inline object handle::call(Args&&... args_) { const size_t size = sizeof...(Args); std::array args{ { detail::type_caster::type>::cast( - std::forward(args_), return_value_policy::automatic, nullptr)... } + std::forward(args_), return_value_policy::reference, nullptr)... } }; bool fail = false; for (auto result : args)