[Cython] Bug: compilation failure with "Template parameter not a type" for pointer & reference types

2016-02-10 Thread Yury V. Zaytsev
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

Re: [Cython] Bug: compilation failure with "Template parameter not a type" for pointer & reference types

2016-02-10 Thread Yury V. Zaytsev
On Wed, 10 Feb 2016, Yury V. Zaytsev wrote: 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. I've just found out that apparently this happens because Cython misparses function definition as

Re: [Cython] Bug: compilation failure with "Template parameter not a type" for pointer & reference types

2016-02-10 Thread Yury V. Zaytsev
On Wed, 10 Feb 2016, Yury V. Zaytsev wrote: Hope that helps to fix the problem for good though! Apparently a separate, but related bug: when C++ class constructor is templated, Cython fails to compile the code. However, if I specify a return type (irrespectively of what type is), it seems