• Dean Moldovan's avatar
    Throw an exception when attempting to load an incompatible holder · cd3d1fc7
    Dean Moldovan authored
    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.
    cd3d1fc7
test_smart_ptr.py 7.86 KB