toki doki, 01.07.2010 12:09:
> I have been trying to use cython-devel with c++ and ran into the
> following bugs (that seem to be unreported as far as I can say from a
> quick glance at Trac).
>
> First, and most annoying: in spite of what is written in the docs
> (http://wiki.cython.org/WrappingCPlusPlus), nested c++ class
> declarations seem to be unsupported. Thus, the following snippet
> (taken from the doc) for wrapping std::vector does not work and raise
> a syntax error:
>
> cdef extern from "<vector>" namespace "std":
>      cdef cppclass vector[T]:
>          cdef cppclass iterator:
>              T operator*()
>              iterator operator++()
>          vector()
>          void push_back(T&)
>          T&  operator[](int)
>          iterator begin()
>          iterator end()
>
> Second: ctypedef'ing templated types raises a syntax Error (for
> example: "ctypedef vector[int] VectOfInt" ).
>
> It would be nice if these two problems were solved for the cython0.13
> release (or even before that, for those of us that dare to use
> cython-devel :-)

Hi,

since you seem to be interested in getting these implemented, why not help 
us by providing a test case for these features? See the C++ tests in the 
tests/ directory, as well as the docs:

http://wiki.cython.org/HackerGuide

Also, please open trac tickets for these two features.

Thanks!

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to