Commit 626c5b0e authored by gsamain's avatar gsamain Committed by Xavier Thompson

Lookup operator with dunder syntax in cypclass

parent 5f4ee3d4
...@@ -2819,6 +2819,10 @@ class CppClassScope(Scope): ...@@ -2819,6 +2819,10 @@ class CppClassScope(Scope):
name = "<del>" name = "<del>"
elif name == "__alloc__": elif name == "__alloc__":
name = "<alloc>" name = "<alloc>"
else:
operator = self.operator_table.get(name, None)
if operator:
name = 'operator'+operator
return super(CppClassScope,self).lookup_here(name) return super(CppClassScope,self).lookup_here(name)
......
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