Merge branch 'master' into sh_merge_master

Includes follow-on to pybind/pybind11#5189: Backport the smart_holder-specific changes from google/pybind11k#30093 and google/pybind11k#30098.
This commit is contained in:
Ralf W. Grosse-Kunstleve
2024-06-24 09:01:55 -07:00
7 changed files with 52 additions and 4 deletions

View File

@@ -218,3 +218,9 @@ def test_function_signatures(doc):
def test_unique_ptr_return_value_policy_automatic_reference():
assert m.get_mtxt(m.rtrn_uq_automatic_reference()) == "rtrn_uq_automatic_reference"
def test_unusual_op_ref():
# Merely to test that this still exists and built successfully.
assert m.CallCastUnusualOpRefConstRef().__class__.__name__ == "LocalUnusualOpRef"
assert m.CallCastUnusualOpRefMovable().__class__.__name__ == "LocalUnusualOpRef"