mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-23 13:45:10 +00:00
fd8265e28d
The original pybind11 holder supported multiple inheritance by recursively creating type casters until it finds one for the source type, then converting each value in turn to the next type via typeinfo->implicit_cast The smart_holder only stored the last implicit_cast, which was incorrect. This commit changes it to create a list of implicit_cast functions that are appended to during the recursive type caster creation, and when the time comes to cast to the destination type, it calls all of them in the correct order. |
||
---|---|---|
.. | ||
pybind11 |