Add const modifier to handle::cast.

This commit is contained in:
Tomasz Miąsko
2015-12-26 19:01:28 +01:00
parent dd57a34e2d
commit cc39b2f37f
3 changed files with 4 additions and 4 deletions

View File

@@ -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.