test_smart_ptr.py
7.86 KB
-
Throw an exception when attempting to load an incompatible holder · cd3d1fc7
Instead of a segfault. Fixes #751. This covers the case of loading a custom holder from a default-holder instance. Attempting to load one custom holder from a different custom holder (i.e. not `std::unique_ptr`) yields undefined behavior, just as #588 established for inheritance.
Dean Moldovan committed