diff --git a/CHANGES b/CHANGES index 73b5fdbf4..33c406b71 100644 --- a/CHANGES +++ b/CHANGES @@ -23,6 +23,7 @@ Bugs fixed * #5009: latex: a label for table is vanished if table does not have a caption * #5048: crashed with numbered toctree * #2410: C, render empty argument lists for macros. +* C++, fix lookup of full template specializations with no template arguments. Testing -------- diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py index f2505f881..11c400df2 100644 --- a/sphinx/domains/cpp.py +++ b/sphinx/domains/cpp.py @@ -3519,6 +3519,9 @@ class Symbol(object): # and params that are packs must in the args be the name expanded if len(templateParams.params) != len(templateArgs.args): 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)): param = templateParams.params[i] arg = templateArgs.args[i]