Don't inherit default constructors by default; the gccxml frontend already does

that by other means; now the caller has to call a method if he wants this
behaviour.
This commit is contained in:
Gustavo J. A. M. Carneiro committed 2007-12-30 18:22:05 +00:00
1 parent bdee7fa4b1
commit e04c3e7d28
2 files changed
+13 -7

No files matched your search

+1
View File
@@ -80,6 +80,7 @@ def my_module_gen(out_file):
Bar = CppClass('Bar', parent=Foo)
mod.add_class(Bar)
Bar.inherit_default_constructors()
## a static method..
Bar.add_method(CppMethod(ReturnValue.new('std::string'), 'Hooray', [], is_static=True))