Ralf W. Grosse-Kunstleve
67c2910308
Adding copy constructor and move constructor tracking to atyp. Preparation for a follow-up change in smart_holder_type_caster, to make this test sensitive to the changing behavior.
...
[skip ci]
2021-02-11 18:00:33 -08:00
Ralf W. Grosse-Kunstleve
3f5a9c9bf4
Adding test_class_sh_factory_constructors, reproducing test_factory_constructors failure. Using py::class_ in this commit, to be changed to py::classh for debugging.
2021-02-09 06:47:45 -08:00
Ralf W. Grosse-Kunstleve
a9bfcbdcc3
Adding smart_holder_type_casters for unique_ptr with custom deleter. SEVERE CODE DUPLICATION. This commit is to establish a baseline for consolidating the unique_ptr code.
2021-02-09 06:47:08 -08:00
Ralf W. Grosse-Kunstleve
742bc0eaf7
Replacing detail::is_smart_holder<H> in cast.h with detail::is_smart_holder_type_caster<T>.
...
Moving get_local_load_function_ptr, init_instance_for_type to smart_holder_type_caster_class_hooks.
Expanding static_assert in py::type::handle_of<> to accommodate smart_holder_type_casters.
2021-02-09 06:47:08 -08:00
Ralf W. Grosse-Kunstleve
87acc89b21
Reintroducing py::classh, this time as a simple alias for py::class_<U, py::smart_holder>.
2021-02-09 06:47:08 -08:00
Ralf W. Grosse-Kunstleve
edfe8bfd71
Systematically renaming tests to use "class_sh" in the name.
2021-02-09 06:47:07 -08:00