public function and templates

63 views
Skip to first unread message

Vladimír Černý

unread,
Mar 6, 2012, 1:33:08 PM3/6/12
to cython-users
Hi,
I have a pxd file:

cdef extern from "file":
cdef cppclass A[T]:
pass

and a pyx file

cdef func1(A[double] a):
pass

cdef public pub_func2(double a):
pass

When i am trying to cythonize it with GIT version of cython it raises
error: "Function declared public or api may not have private types"

This error is on the line with public function but if I delete the
func1 (with template) it works. This is strange.

Do you think there is a way how to override it? I need to have public
functions and functions with templated arguments. Thanks


Vladimir


Robert Bradshaw

unread,
Mar 29, 2012, 4:56:49 AM3/29/12
to cython...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages