Hi list,
Sorry for asking for help on something probably trivial, but I am afraid that I am being dense. I have been trying to wrap the C++ map container into a dict-like object using Cython, and I cannot seem to get it working.
So far, my best attempt is:
https://gist.github.com/3904873However, it seems to me that it produces invalid C++ code. In the C++ version of '__new__', the constructor for the map container is called without its contained type definitions, and thus the code does not compile. I believe that this is due to the map container declared as an object-level attribute.
I am hitting this problem probably because I am not using Cython right. However, I fail to see what the right strategy would be here.
Thanks a lot for any help.
Gaël