mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 21:25:13 +00:00
6b52c838d7
This allows a slightly cleaner base type specification of: py::class_<Type, Base>("Type") as an alternative to py::class_<Type>("Type", py::base<Base>()) As with the other template parameters, the order relative to the holder or trampoline types doesn't matter. This also includes a compile-time assertion failure if attempting to specify more than one base class (but is easily extendible to support multiple inheritance, someday, by updating the class_selector::set_bases function to set multiple bases). |
||
---|---|---|
.. | ||
pybind11 |