From 3732021ead87126a0e87aad145b77683092de4f2 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Thu, 1 May 2008 19:45:50 +0100 Subject: [PATCH] register class aliases with the module type registry as well --- pybindgen/cppclass.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pybindgen/cppclass.py b/pybindgen/cppclass.py index 6f94544..60349f3 100644 --- a/pybindgen/cppclass.py +++ b/pybindgen/cppclass.py @@ -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)