Dean Moldovan cd3d1fc7df Throw an exception when attempting to load an incompatible holder
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.
2017-03-21 10:26:22 +01:00
..
2017-03-10 15:42:42 +01:00
2017-03-10 15:42:42 +01:00
2017-01-31 17:28:29 +01:00
2017-01-31 17:05:44 +01:00
2017-03-10 15:42:42 +01:00
2016-12-16 15:00:46 +01:00
2016-12-16 15:00:46 +01:00
2016-12-16 15:00:46 +01:00
2016-12-16 15:00:46 +01:00