Commit 97d39fea authored by Robert Bradshaw's avatar Robert Bradshaw

Fix issue with template type comparison.

parent 2e60a2bc
......@@ -3666,8 +3666,8 @@ class CppClassType(CType):
if other_type.is_cpp_class:
if self == other_type:
return 1
elif (self.cname == other_type.cname and
self.template_type and other_type.template_type):
elif (self.cname == other_type.cname
and (self.templates or other_type.templates)):
if self.templates == other_type.templates:
return 1
for t1, t2 in zip(self.templates, other_type.templates):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment