Skip to content

Commit b06f71b

Browse files
committed
Applying pr3838_sh.patch (exactly as used Google-internally since 2022-03-31).
1 parent 4f81655 commit b06f71b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/pybind11/detail/smart_holder_type_casters.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,8 @@ struct smart_holder_type_caster<std::shared_ptr<T>> : smart_holder_type_caster_l
790790
throw cast_error("Invalid return_value_policy for shared_ptr (reference).");
791791
case return_value_policy::reference_internal:
792792
break;
793+
case return_value_policy::return_as_bytes:
794+
break;
793795
}
794796
if (!src) {
795797
return none().release();

0 commit comments

Comments
 (0)