Skip to content

Commit

Permalink
Also accept automatic_reference
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxf123456 committed Aug 3, 2023
1 parent 8bcd157 commit 500d7af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/pybind11/detail/smart_holder_type_casters.h
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,7 @@ struct smart_holder_type_caster<std::unique_ptr<T, D>> : smart_holder_type_caste

static handle cast(std::unique_ptr<T, D> &&src, return_value_policy policy, handle parent) {
if (policy != return_value_policy::automatic
&& policy != return_value_policy::automatic_reference
&& policy != return_value_policy::reference_internal
&& policy != return_value_policy::move
&& policy != return_value_policy::_clif_automatic) {
Expand Down

0 comments on commit 500d7af

Please sign in to comment.