Commit 48efcba4 authored by Robert Bradshaw's avatar Robert Bradshaw Committed by GitHub

Update wrapping_CPlusPlus.rst

parent fd85d226
......@@ -658,7 +658,7 @@ Cython has support for the ``typeid(...)`` operator.
The ``typeid(...)`` operator returns an object of the type ``const type_info &``.
If you want to store a type_info value in a C variable, you will need to store it
as a pointer rather than a reference:
as a pointer rather than a reference::
from libcpp.typeinfo cimport type_info
cdef const type_info* info = &typeid(MyClass)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment