From edbdef7ccf88df9632ad9e31884da347d1d3cd7c Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Fri, 2 Oct 2015 09:33:53 +0200 Subject: [PATCH] fixed pybind::call value policy --- include/pybind/cast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)