File tree 2 files changed +1
-11
lines changed
2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -554,16 +554,7 @@ enum class return_value_policy : uint8_t {
554
554
but the purpose of _return_as_bytes is certain to be orthogonal, because
555
555
C++ strings are always copied to Python `bytes` or `str`.
556
556
NOTE: This policy is NOT available on master. */
557
- _return_as_bytes,
558
-
559
- /* * This policy should only be used by PyCLIF to automatically select a
560
- return value policy. Legacy PyCLIF automatically decides object lifetime
561
- management based on their properties:
562
- https://github.com/google/clif/tree/main/clif/python#pointers-references-and-object-ownership
563
- With this policy, the return value policy selection is consistent with
564
- legacy PyCLIF.
565
- NOTE: This policy is NOT available on master. */
566
- _clif_automatic
557
+ _return_as_bytes
567
558
};
568
559
569
560
#define PYBIND11_HAS_RETURN_VALUE_POLICY_RETURN_AS_BYTES
Original file line number Diff line number Diff line change @@ -918,7 +918,6 @@ struct smart_holder_type_caster<std::shared_ptr<T>> : smart_holder_type_caster_l
918
918
break ;
919
919
case return_value_policy::reference_internal:
920
920
case return_value_policy::_return_as_bytes:
921
- case return_value_policy::_clif_automatic:
922
921
break ;
923
922
}
924
923
if (!src) {
You can’t perform that action at this time.
0 commit comments