1. Apr 21, 2021
  2. Apr 20, 2021
    • Ralf W. Grosse-Kunstleve's avatar
      7c7c336d
    • Ralf W. Grosse-Kunstleve's avatar
      Bug fix: adding back `!is_alias<Class>(ptr)` that were accidentally omitted. (#2958) · 99de498b
      Ralf W. Grosse-Kunstleve authored
      * Bug fix: adding back `!is_alias<Class>(ptr)` that were accidentally omitted.
      
      * Introducing PYBIND11_SH_AVL, PYBIND11_SH_DEF macros. Applying PYBIND11_SH_DEF to test_factory_constructors.py to complete test coverage.
      
      * Using PYBIND11_SH_DEF in test_methods_and_attributes.cpp, for more complete test coverage.
      
      * Using PYBIND11_SH_DEF in test_multiple_inheritance.cpp, for more complete test coverage.
      
      * Cleaning up test_classh_mock.cpp.
      
      * Better explanations for PYBIND11_SH_AVL, PYBIND11_SH_DEF.
      
      * Disabling 3.10-dev builds.
      99de498b
    • mvoelkle-cern's avatar
      Fix compilation with gcc < 5 (#2956) · e08a5811
      mvoelkle-cern authored
      When the user defines _GLIBCXX_USE_CXX11_ABI=0 to force the pre-c++11 ABI, numpy.h assumes that is_trivially_copyable is available.
      It is not necessarily the case. This patch uses clang's feature detection instead.
      The workaround is for certain libstdc++ versions, so the test should target these particular versions.
      e08a5811
  3. Apr 16, 2021
  4. Apr 15, 2021
  5. Apr 14, 2021
  6. Apr 13, 2021
  7. Apr 10, 2021
    • Henry Schreiner's avatar
      chore: add myself to CODEOWNERS (#2940) · e0c1dadb
      Henry Schreiner authored
      * chore: add myself to CODEOWNERS
      
      This will ensure I get notified about pull requests where these files change.
      
      * Update .github/CODEOWNERS
      e0c1dadb
    • 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
  8. Apr 09, 2021
  9. Apr 06, 2021
  10. Apr 03, 2021
  11. Apr 02, 2021
  12. Mar 26, 2021
  13. Mar 24, 2021
  14. Mar 23, 2021
  15. 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
  16. Mar 19, 2021