Re: [Cython] Problem with declaring a map with an enum type.

2015-07-18 Thread Robert Bradshaw
On Thu, Jul 16, 2015 at 2:13 PM, Brian McAndrews wrote: > I have a C enum type that I’m attempting to put in a C++ map: Interesting, thanks for the report. Fixed at https://github.com/cython/cython/commit/427771298da04f0f5bb61659ddf4a61bd0f02af4 > Here’s what I got: > > > > colors.h: > > enum Co

[Cython] Problem with declaring a map with an enum type.

2015-07-16 Thread Brian McAndrews
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