I have one cpp file like this:
namespace MyNamespace {
struct MyStruct {
std::unordered_set<index> field1;
std::unordered_set<index> field2;
}
I haven't done any wrapping for MyStruct
.
Then in Cython file, I try to access field1
of a MyStruct
object (returned by some function, details omitted).
However, Cython automatically converts the struct
to dict
, which actually evaluates to {}
(But I'm not sure why).
So is there a way to disable the conversion temporally?