mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-23 13:45:10 +00:00
91f97ca401
* Drop constraints on casting of std::shared_ptr
std::shared_ptrs can be shared across python and C++ by design.
* Correctly report casting error
It is important to return an empty handle.
Simply returning None, would skip the error handling in
simple_collector / unpacking_collector, although a python exception is set.
A function call would then be processed with a (wrong) None argument!
* Return None for nullptr
* Revert "Drop constraints on casting of std::shared_ptr"
This reverts commit
|
||
---|---|---|
.. | ||
pybind11 |