mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-16 13:47:53 +00:00
Revert "Add handling of return_value_policy::_clif_automatic
in type_caster_pyobject_ptr.h (backported from https://github.com/google/pywrapcc/pull/30021)"
This reverts commit bd69f7aaf2
.
This commit is contained in:
parent
21d81fc21d
commit
7d8e6ea5b9
@ -32,8 +32,7 @@ public:
|
||||
raise_from(PyExc_SystemError, "src != nullptr but PyErr_Occurred()");
|
||||
throw error_already_set();
|
||||
}
|
||||
if (policy == return_value_policy::take_ownership
|
||||
|| policy == return_value_policy::_clif_automatic) {
|
||||
if (policy == return_value_policy::take_ownership) {
|
||||
return src;
|
||||
}
|
||||
if (policy == return_value_policy::reference
|
||||
|
Loading…
Reference in New Issue
Block a user