pybind11/include/pybind11
Ralf W. Grosse-Kunstleve 5319ca3817
Using `dynamic_cast<AliasType>` to determine `pointee_depends_on_holder_owner`. (#2910)
* 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.
2021-03-19 12:18:39 -07:00
..
detail Using `dynamic_cast<AliasType>` to determine `pointee_depends_on_holder_owner`. (#2910) 2021-03-19 12:18:39 -07:00
attr.h fix: a warning found by static code analyzer (#2783) 2021-01-13 23:14:06 -05:00
buffer_info.h Fix buffer_info for ctypes buffers (pybind#2502) (#2503) 2020-10-03 23:09:14 +02:00
cast.h Adding py::smart_holder (for smart-pointer interoperability). (#2672) 2021-02-23 21:50:42 -08:00
chrono.h Use correct duration representation when casting from datetime.timdelta to std::chrono::duration (#2870) 2021-03-07 23:42:01 -08:00
common.h Add a dummy common.h header with a deprecation warning 2017-09-06 15:22:26 +02:00
complex.h Change NAMESPACE_* macros into PYBIND11_NAMESPACE_* (#2283) 2020-07-08 18:14:41 -04:00
eigen.h style: clang-tidy: modernize-use-using (#2645) 2020-11-09 10:10:19 -08:00
embed.h Shorten PYBIND11_EMBEDDED_MODULE macro implementation by using PYBIND11_CATCH_INIT_EXCEPTIONS (#2579) 2020-10-12 23:10:18 +02:00
eval.h Add __builtins__ to globals argument of `py::exec` and `py::eval` if not present (#2616) 2020-10-27 19:58:27 +01:00
functional.h fix: ensure the GIL is held when copying a function. (#2545) 2020-10-02 17:00:45 -04:00
gil.h Extract gil management functions to separate header (#2845) 2021-02-22 19:15:40 -08:00
iostream.h fix: avoid changing class outside of GIL 2021-01-26 20:59:27 -05:00
numpy.h Dtype kind vs char (#2864) 2021-02-23 10:57:28 +01:00
operators.h Change NAMESPACE_* macros into PYBIND11_NAMESPACE_* (#2283) 2020-07-08 18:14:41 -04:00
options.h Change NAMESPACE_* macros into PYBIND11_NAMESPACE_* (#2283) 2020-07-08 18:14:41 -04:00
pybind11.h Using `dynamic_cast<AliasType>` to determine `pointee_depends_on_holder_owner`. (#2910) 2021-03-19 12:18:39 -07:00
pytypes.h Add pybind11::bytearray (#2799) 2021-02-14 15:51:13 +01:00
smart_holder.h Adding py::smart_holder (for smart-pointer interoperability). (#2672) 2021-02-23 21:50:42 -08:00
stl.h Changing pybind11::str to exclusively hold PyUnicodeObject (#2409) 2021-01-29 09:41:42 -08:00
stl_bind.h Adding py::smart_holder (for smart-pointer interoperability). (#2672) 2021-02-23 21:50:42 -08:00
virtual_overrider_self_life_support.h Using `dynamic_cast<AliasType>` to determine `pointee_depends_on_holder_owner`. (#2910) 2021-03-19 12:18:39 -07:00