mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
C++, fix lookup of full template specializations with no template arguments
This commit is contained in:
parent
515fb53b60
commit
b1e1fd0822
1
CHANGES
1
CHANGES
@ -23,6 +23,7 @@ Bugs fixed
|
|||||||
* #5009: latex: a label for table is vanished if table does not have a caption
|
* #5009: latex: a label for table is vanished if table does not have a caption
|
||||||
* #5048: crashed with numbered toctree
|
* #5048: crashed with numbered toctree
|
||||||
* #2410: C, render empty argument lists for macros.
|
* #2410: C, render empty argument lists for macros.
|
||||||
|
* C++, fix lookup of full template specializations with no template arguments.
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
@ -3519,6 +3519,9 @@ class Symbol(object):
|
|||||||
# and params that are packs must in the args be the name expanded
|
# and params that are packs must in the args be the name expanded
|
||||||
if len(templateParams.params) != len(templateArgs.args):
|
if len(templateParams.params) != len(templateArgs.args):
|
||||||
return True
|
return True
|
||||||
|
# having no template params and no arguments is also a specialization
|
||||||
|
if len(templateParams.params) == 0:
|
||||||
|
return True
|
||||||
for i in range(len(templateParams.params)):
|
for i in range(len(templateParams.params)):
|
||||||
param = templateParams.params[i]
|
param = templateParams.params[i]
|
||||||
arg = templateArgs.args[i]
|
arg = templateArgs.args[i]
|
||||||
|
Loading…
Reference in New Issue
Block a user