diff options
author | Robert Bradshaw <robertwb@gmail.com> | 2016-12-04 04:31:35 -0800 |
---|---|---|
committer | Robert Bradshaw <robertwb@gmail.com> | 2016-12-04 04:31:40 -0800 |
commit | f3f7980d5b6ee981f7805c6ad2ae3de426234b25 (patch) | |
tree | 3902b531b559b0ffa0dc7cb1719838823a6f33eb | |
parent | a5ec19b6260b530c1845098e20fd61759fe65e5b (diff) | |
download | cython-f3f7980d5b6ee981f7805c6ad2ae3de426234b25.tar.gz |
Allow template deduction for partially specified types.
This fully resolves #1542.
-rw-r--r-- | Cython/Compiler/PyrexTypes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index 759750772..f3c57581f 100644 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -3505,7 +3505,7 @@ class CppClassType(CType): # Untemplated type? return None # TODO(robertwb): Actual type equality. - elif self.empty_declaration_code() == actual.template_type.empty_declaration_code(): + elif (self.template_type or self).empty_declaration_code() == actual.template_type.empty_declaration_code(): return reduce( merge_template_deductions, [formal_param.deduce_template_params(actual_param) |