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:
Gustavo J. A. M. Carneiro committed 2008-09-02 11:06:24 +01:00
1 parent 9f87c19f90
commit a143441eac
13 files changed
+394 -215

No files matched your search

+2 -2
View File
@@ -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()