I have a C enum type that I'm attempting to put in a C++ map:
Here's what I got:
colors.h:
enum Color
{
GREEN,BLUE,RED
};
val.pyx:
from libcpp.string cimport string
from libcpp.map cimport map
cdef extern from "colors.h":
cpdef enum _Color "Color":
GREEN,BLUE,RED
cdef class T
Hello,
being unable to acquire the Trac account (Robert Bradshaw's email is not
listed on his site), I write here.
The issue was described here: http://trac.cython.org/ticket/847 but was,
however, misidentified. The wrapper for a function which receives "fused
slice" (D[:]) arguments automatically