pybind11/include/pybind11
Jason Rhinelander 353615f77e Make init_holder do registration, and rename to init_instance
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.
2017-07-28 20:39:33 -04:00
..
attr.h Make init_holder do registration, and rename to init_instance 2017-07-28 20:39:33 -04:00
buffer_info.h Convenience constructor templates for buffer_info (#860) 2017-05-29 03:13:55 +02:00
cast.h Make init_holder do registration, and rename to init_instance 2017-07-28 20:39:33 -04:00
chrono.h Fix for floating point durations 2017-03-11 23:04:16 -04:00
class_support.h Make init_holder do registration, and rename to init_instance 2017-07-28 20:39:33 -04:00
common.h Implicit conversions to bool + np.bool_ conversion (#925) 2017-07-23 11:02:43 -04:00
complex.h Allow std::complex field with PYBIND11_NUMPY_DTYPE (#831) 2017-05-10 11:36:24 +02:00
descr.h Fix gcc 7 warning 2017-05-10 10:42:23 -04:00
eigen.h Fix indirect loading of Eigen::Ref 2017-06-29 11:31:54 +02:00
embed.h Destroy internals if created during Py_Finalize() 2017-06-08 16:42:06 -03:00
eval.h Fix missing default globals in eval/exec when embedding 2017-06-07 11:44:30 +02:00
functional.h Use std::type_info::name() for type lookups outside stdlibc++ 2017-06-24 10:46:33 -03:00
numpy.h Help CLion IDE evaluate PYBIND11_NUMPY_DTYPE 2017-06-23 12:56:15 +02:00
operators.h Define both __div__ and __truediv__ for Python 2 2017-05-21 19:15:25 -04:00
options.h Provide more control over automatic generation of docstrings (#486) 2016-11-15 12:38:05 +01:00
pybind11.h Make init_holder do registration, and rename to init_instance 2017-07-28 20:39:33 -04:00
pytypes.h Fix unsigned error value casting 2017-07-02 15:27:51 -04:00
stl_bind.h Detect std::pair non-copyability 2017-07-28 20:37:45 -04:00
stl.h Use rvalue subcasting when casting an rvalue container 2017-07-05 12:27:14 -04:00
typeid.h minor cleanups in common.h; updated author info and copyright year 2016-04-18 10:53:38 +02:00