1. Apr 10, 2021
    • Ralf W. Grosse-Kunstleve's avatar
      Adding reclaim_disowned logic & miscellaneous naming and documentation improvements. (#2943) · 6c922614
      Ralf W. Grosse-Kunstleve authored
      * Using new smart_holder::reclaim_disowned in smart_holder_type_caster for unique_ptr.
      
      * Systematically renaming was_disowned to is_disowned (because disowning is now reversible: reclaim_disowned).
      
      * Systematically renaming virtual_overrider_self_life_support to trampoline_self_life_support (to reuse existing terminology instead of introducing new one).
      
      * Systematically renaming test_class_sh_with_alias to test_class_sh_trampoline_basic.
      
      * Adding a Trampolines and std::unique_ptr section to README_smart_holder.rst.
      
      * MSVC compatibility.
      6c922614
  2. Apr 09, 2021
  3. Apr 06, 2021
  4. Apr 03, 2021
  5. Apr 02, 2021
  6. Mar 26, 2021
  7. Mar 24, 2021
  8. Mar 23, 2021
  9. Mar 20, 2021
    • Ralf W. Grosse-Kunstleve's avatar
      Using `dynamic_cast<AliasType>` to determine `pointee_depends_on_holder_owner`. (#2910) · 5319ca38
      Ralf W. Grosse-Kunstleve authored
      * Adaption of PyCLIF virtual_py_cpp_mix test.
      
      * Removing ValueError: Ownership of instance with virtual overrides in Python cannot be transferred to C++. TODO: static_assert alias class needs to inherit from virtual_overrider_self_life_support.
      
      * Bringing back ValueError: "... instance cannot safely be transferred to C++.", but based on dynamic_cast<AliasType>.
      
      * Fixing oversight: adding test_class_sh_virtual_py_cpp_mix.cpp to cmake file.
      
      * clang <= 3.6 compatibility.
      
      * Fixing oversight: dynamic_raw_ptr_cast_if_possible needs special handling for To = void. Adding corresponding missing test in test_class_sh_virtual_py_cpp_mix. Moving dynamic_raw_ptr_cast_if_possible to separate header.
      
      * Changing py::detail::virtual_overrider_self_life_support to py::virtual_overrider_self_life_support.
      5319ca38
  10. Mar 19, 2021
  11. Mar 17, 2021
  12. Mar 16, 2021
    • Ralf W. Grosse-Kunstleve's avatar
      Adding virtual_overrider_self_life_support. (#2902) · 46979203
      Ralf W. Grosse-Kunstleve authored
      * Initial version of virtual_overrider_self_life_support (enables safely passing unique_ptr to C++).
      
      * Clang 3.6, 3.7 compatibility.
      
      * Adding missing default constructor.
      
      * Restoring test for exception for the case that virtual_overrider_self_life_support is not used.
      
      * Fixing oversight: Adding missing holder().ensure_was_not_disowned().
      
      * Adding unit tests for new `struct smart_holder` member functions.
      
      * Moving virtual_overrider_self_life_support to separate include file, with iwyu cleanup.
      46979203
  13. Mar 10, 2021
  14. Mar 08, 2021
  15. Mar 07, 2021
  16. Mar 06, 2021
  17. Mar 04, 2021
  18. Mar 03, 2021
  19. Feb 28, 2021
  20. Feb 27, 2021
  21. Feb 25, 2021