diff --git a/docs/advanced/smart_ptrs.rst b/docs/advanced/smart_ptrs.rst index 9bb82c5a0..35008dbe8 100644 --- a/docs/advanced/smart_ptrs.rst +++ b/docs/advanced/smart_ptrs.rst @@ -78,6 +78,13 @@ However, this will fail with ``py::class_`` (but works with void do_something_with_example(std::unique_ptr ex) { ... } +.. note:: + + The ``reinterpret_cast`` mentioned above is `here + `_. + For completeness: The same cast is also applied to ``py::smart_holder``, + but that is safe, because ``py::smart_holder`` is not templated. + ``std::shared_ptr`` ===================