mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-31 15:20:34 +00:00
353615f77e
The instance registration for offset base types fails (under macOS, with a segfault) in the presense of virtual base types. The issue occurs when trying to `static_cast<Base *>(derived_ptr)` when `derived_ptr` has been allocated (via `operator new`) but not initialized. This commit fixes the issue by moving the addition to `registered_instances` into `init_holder` rather than immediately after value pointer allocation. This also renames it to `init_instance` since it does more than holder initialization now. (I also further renamed `init_holder_helper` to `init_holder` since `init_holder` isn't used anymore). Fixes #959. |
||
---|---|---|
.. | ||
attr.h | ||
buffer_info.h | ||
cast.h | ||
chrono.h | ||
class_support.h | ||
common.h | ||
complex.h | ||
descr.h | ||
eigen.h | ||
embed.h | ||
eval.h | ||
functional.h | ||
numpy.h | ||
operators.h | ||
options.h | ||
pybind11.h | ||
pytypes.h | ||
stl_bind.h | ||
stl.h | ||
typeid.h |