Commit 6bb2e08f authored by Robert Bradshaw's avatar Robert Bradshaw

Fix class in template specialization.

parent 43744711
......@@ -1846,6 +1846,8 @@ class CppClassType(CType):
return self.specialize(dict(zip(self.templates, template_values)))
def specialize(self, values):
if not self.templates:
return self
key = tuple(values.items())
if key in self.specializations:
return self.specializations[key]
......
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