Commit 60421db2 authored by Xavier Thompson's avatar Xavier Thompson

Fix templated-namespace-dependent nested type declarations needing 'typename'

parent 1a6de1c2
......@@ -4018,6 +4018,9 @@ class CppClassType(CType):
base_code = "%s%s" % (self.cname, templates)
if self.namespace is not None:
base_code = "%s::%s" % (self.namespace.empty_declaration_code(), base_code)
if (self.namespace.templates is not None
and any(isinstance(t, TemplatePlaceholderType) for t in self.namespace.templates)):
base_code = "typename %s" % base_code
base_code = public_decl(base_code, dll_linkage)
return self.base_declaration_code(base_code, entity_code)
......
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