[Cython] Bug: compilation failure with "Template parameter not a type" for pointer & reference types
Yury V. Zaytsev
yury at shurup.com
Wed Feb 10 05:42:45 EST 2016
Hi,
I came across the following bug, while trying to implement iterator
versions of std::string members, for which a simple reproducer is below.
If the return type of a function is a normal type, then everything is
fine, but if it's a pointer or reference type, then Cython refuses to
compile it.
Could something please be done about that? Many thanks!
Error compiling Cython file:
------------------------------------------------------------
...
cdef extern from * nogil:
cdef cppclass test:
void assign[input_iterator](input_iterator, input_iterator)
char assign[input_iterator](input_iterator, input_iterator)
char* assign[input_iterator](input_iterator, input_iterator)
char& assign[input_iterator](input_iterator, input_iterator)
^
------------------------------------------------------------
notatype.pyx:6:35: Template parameter not a type
--
Sincerely yours,
Yury V. Zaytsev
More information about the cython-devel
mailing list