[C++-sig] Exposing members of members

David Abrahams dave at boostpro.com
Tue Jan 20 20:57:39 CET 2009

on Tue Jan 20 2009, Ricardo Abreu <gumbeto-AT-gmail.com> wrote:

> 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.

Looks like you want to use class_<...> .add_property( ... )


Dave Abrahams
BoostPro Computing

More information about the Cplusplus-sig mailing list