register class aliases with the module type registry as well

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-05-01 19:45:50 +01:00
1 parent 48946bca98
commit 3732021ead
1 file changed
+3
+3
View File
@@ -766,6 +766,9 @@ class CppClass(object):
def register_alias(self, alias):
"""Re-register the class with another base name, in addition to any
registrations that might have already been done."""
self.module.register_type(None, alias, self)
self.ThisClassParameter.CTYPES.append(alias)
try:
param_type_matcher.register(alias, self.ThisClassParameter)