[Cython] nested C++ classes, the third: default constructor

2012-01-19 Thread Simon Anders
Hi, sorry for spreading these issues into three mails, but I cannot quite figure out whether they are related or not. So, here is the third installment of my adventures with nested classes. Consider the following code which compiles fine: ---8<--- cdef extern from "foo": cdef cppclass out

[Cython] non-template nested C++ classes

2012-01-19 Thread Simon Anders
Hi, I'm currently experimenting with Cython's support for nested C++ classes and might havce encountered a bug. I have attempted to strip down the example from the documentation to its bare minimum. This here works fine: ---8<--- cdef extern from "foo": cdef cppclass outer[T]: c

[Cython] Cython crash: C++ class with missing default constructor

2012-01-19 Thread Simon Anders
Hi, the following very short Cython code crashes the Cython compiler (v0.15.1): ---8<--- cdef extern from "foo.h": cdef cppclass foo: pass foo() ---8<--- The stack trace is attached. Best regards Simon Traceback (most recent call last): File "/home/anders/tmp/Cython-0.15.1/cytho

[Cython] cython crash: default parameters in methods of template cppclass

2011-03-22 Thread Simon Anders
rgument, i.e., the "[ T ]" in line 2 and the "[ int ]" in line 5. Hence, the issue only appears when calling methods of _templated_ classes, which have a _default_ value for their argument. Simon +--- | Dr. Simon Anders, Dipl.-Phys. | European Molecular Biology Lab