[C++-sig] [Py++] Nested enum as default arg

Roman Yakovenko roman.yakovenko at gmail.com
Thu Sep 7 21:22:39 CEST 2006


On 9/7/06, Kirill Lapshin <kir at lapshin.net> wrote:
> Roman Yakovenko wrote:
> >> Is there any way to change the order in which various classes get
> >> registered?
> >
> > Yes of course. Take a look on this example( unit test ):
> > http://svn.sourceforge.net/viewvc/pygccxml/pyplusplus_dev/unittests/class_order_tester.py?view=markup
> >
> > Then you can take a look on code_creators: compound_t, module_t,
> > module_body_t. This should help you.
>
> Works like a charm! Thanks a bunch.

Enjoy.

> There is one tiny annoyance though -- match_declaration_t can't search
> declarations by alias, and searching by name is not that nice, since it
> requires spelling out full name such as std::vector<
> boost::shared_ptr<foo>, std::allocator< boost::shared_ptr<foo> >.
> Not a big deal, I wrote my own matcher that does what I want.

Someday "code creators tree" will provide better( more user friendly )
interface. It will happen, I am sure.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list