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:
1 parent
bdee7fa4b1
commit
e04c3e7d28
2 files changed
+13
-7
No files matched your search
@@ -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))
|
||||
|
||||
|
||||
Reference in new issue
Block a user