mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +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);
|
const size_t size = sizeof...(Args);
|
||||||
std::array<PyObject *, size> args{
|
std::array<PyObject *, size> args{
|
||||||
{ detail::type_caster<typename detail::decay<Args>::type>::cast(
|
{ 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;
|
bool fail = false;
|
||||||
for (auto result : args)
|
for (auto result : args)
|
||||||
|
Loading…
Reference in New Issue
Block a user