Commit a7707ebe authored by Robert Bradshaw's avatar Robert Bradshaw

C++ specialization fix

parent ae0b93d9
...@@ -2117,18 +2117,20 @@ class CppClassScope(Scope): ...@@ -2117,18 +2117,20 @@ class CppClassScope(Scope):
entry.pos, entry.pos,
entry.cname, entry.cname,
template=1) template=1)
else: elif entry.type.is_cfunction:
# scope.declare_var(entry.name,
# entry.type.specialize(values),
# entry.pos,
# entry.cname,
# entry.visibility)
for e in entry.all_alternatives(): for e in entry.all_alternatives():
scope.declare_cfunction(e.name, scope.declare_cfunction(e.name,
e.type.specialize(values), e.type.specialize(values),
e.pos, e.pos,
e.cname, e.cname,
utility_code = e.utility_code) utility_code = e.utility_code)
else:
scope.declare_var(entry.name,
entry.type.specialize(values),
entry.pos,
entry.cname,
entry.visibility)
return scope return scope
......
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