> Thank you very much for your answer, but what I really wanted was to> expose
> to Python just the first element of the pair and not the whole> pair, so that
> the fact that it is a pair in c++ would be transparent> to python. For
> instance, if I had struct A{std::pair<int,bool> a;};,
> I just wanted to expose a.first, as a simple int...
Do you want
a_obj = A()
a_obj.a.first
to give you the int in Python or
a_obj.a
?
_______________________________________________
Cplusplus-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/cplusplus-sig