Re: [pygccxml-development] Force bp::no_init
Brought to you by:
mbaas,
roman_yakovenko
From: Kevin B. <kev...@gm...> - 2006-09-21 17:10:36
|
Roman Yakovenko wrote: > Foo = mbuilder.class_( "Foo" ) > constructors = Foo.constructors() > for c in constructors: > if not c.is_copy_constructor: > Foo.remove_declaration( c ) > Thanks, that does work. Here is the class function I refactored it into: def force_no_init(self): for c in [ c for c in self.constructors() if not c.is_copy_constructor ]: self.remove_declaration( c ) --- Kevin |