[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( ... )
http://www.boost.org/doc/libs/1_37_0/libs/python/doc/v2/class.html#class_-spec-modifiers
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
More information about the Cplusplus-sig
mailing list