pybind11.h
111 KB
-
Setting record.default_holder correctly for PYBIND11_USE_SMART_HOLDER_AS_DEFAULT. · 0394e593
With this test_class.cpp builds and even mostly runs, except `test_multiple_instances_with_same_pointer`, which segfaults because it is using a `unique_ptr` holder but `smart_holder` `type_caster`. Also adding `static_assert`s to generate build errors for such situations, but guarding with `#if 0` to first pivot to test_factory_constructors.cpp.
Ralf W. Grosse-Kunstleve committed