For the nonconstructor template method, use the following class without a template:
class SomeClass { template <class T> void other(T& spam); };
I managed to get this to work:
cdef extern from "someclass.h": cppclass SomeClass: void other[T](T &spam)
This may not help you if you definitely need a constructor template method, but it looks like Cython support for template methods has improved, at least since this question was asked.
b4hand
source share