mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-20 06:49:25 +00:00
Add const modifier to handle::cast.
This commit is contained in:
@@ -118,7 +118,7 @@ Without reference counting
|
||||
Return a string representation of the object. This is analogous to
|
||||
the ``str()`` function in Python.
|
||||
|
||||
.. function:: template <typename T> T handle::cast()
|
||||
.. function:: template <typename T> T handle::cast() const
|
||||
|
||||
Attempt to cast the Python object into the given C++ type. A
|
||||
:class:`cast_error` will be throw upon failure.
|
||||
|
||||
Reference in New Issue
Block a user