Commit 8559d411 authored by Robert Bradshaw's avatar Robert Bradshaw

Deduce templates through const and ref qualifiers.

parent 1d779be4
...@@ -3496,6 +3496,10 @@ class CppClassType(CType): ...@@ -3496,6 +3496,10 @@ class CppClassType(CType):
return specialized return specialized
def deduce_template_params(self, actual): def deduce_template_params(self, actual):
if actual.is_const:
actual = actual.const_base_type
if actual.is_reference:
actual = actual.ref_base_type
if self == actual: if self == actual:
return {} return {}
elif actual.is_cpp_class: elif actual.is_cpp_class:
......
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