mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-21 20:55:11 +00:00
fixed pybind::call value policy
This commit is contained in:
parent
6a32620db3
commit
edbdef7ccf
@ -610,7 +610,7 @@ template <typename... Args> inline object handle::call(Args&&... args_) {
|
||||
const size_t size = sizeof...(Args);
|
||||
std::array<PyObject *, size> args{
|
||||
{ detail::type_caster<typename detail::decay<Args>::type>::cast(
|
||||
std::forward<Args>(args_), return_value_policy::automatic, nullptr)... }
|
||||
std::forward<Args>(args_), return_value_policy::reference, nullptr)... }
|
||||
};
|
||||
bool fail = false;
|
||||
for (auto result : args)
|
||||
|
Loading…
Reference in New Issue
Block a user