Using the helper class as replacement for the real class, when not dealing with a real subclass, is nothing but trouble.
This commit is contained in:
1 parent
e04c3e7d28
commit
a232af5b10
1 file changed
+1
-7
@@ -409,13 +409,7 @@ class CppClass(object):
|
||||
if self.cannot_be_constructed:
|
||||
raise CodeGenerationError("%s cannot be constructed" % self.full_name)
|
||||
if self.have_pure_virtual_methods:
|
||||
if self.helper_class is None:
|
||||
raise CodeGenerationError("%s cannot be constructed" % self.full_name)
|
||||
else:
|
||||
if self.helper_class.cannot_be_constructed:
|
||||
raise CodeGenerationError("%s cannot be constructed" % self.full_name)
|
||||
else:
|
||||
return self.helper_class.name
|
||||
raise CodeGenerationError("%s cannot be constructed" % self.full_name)
|
||||
else:
|
||||
return self.full_name
|
||||
|
||||
|
||||
Reference in new issue
Block a user