Revamp type matching system and const handling, is_const becomes deprecated.
Now types are specified with consts inside the type string, is_const is deprecated. The ctypeparser utility module, previously only used to canonicalize type strings, is used more extensively throughout pybindgen to provide type traits and type manipulation, where needed. gccxml type traits no longer used as consequence.
This commit is contained in:
1 parent
9f87c19f90
commit
a143441eac
13 files changed
+394
-215
No files matched your search
@@ -1197,8 +1197,8 @@ public:
|
||||
Utility method to add a 'copy constructor' method to this class.
|
||||
"""
|
||||
try:
|
||||
constructor = CppConstructor([self.ThisClassRefParameter("%s &" % self.full_name,
|
||||
'ctor_arg', is_const=True)])
|
||||
constructor = CppConstructor([self.ThisClassRefParameter("const %s &" % self.full_name,
|
||||
'ctor_arg')])
|
||||
except utils.SkipWrapper:
|
||||
return None
|
||||
constructor.stack_where_defined = traceback.extract_stack()
|
||||
|
||||
Reference in new issue
Block a user