You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compiler error "missing-template-arg-list-after-template-kw" with new cern root release #148
I am trying to compile the newest version (12427b9) but I get the error:
AnalysisTree/infra/Variable.hpp:74:41: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
vars_.emplace_back(field.template GetValue(object));
However, this error only appears with the newest cern root release (6.40.02, https://root.cern.ch/releases/release-64002/ ). I switched back to version 6.36.14 and there it compiles fine. I am using Linux Mint 22.3 and compiling with gcc 13.3.0.
Activity
lubynets commentedon Jul 7, 2026
Hi @AdrianMeyerAhrens,
thanks for letting me know about the problem!
Try the fix implemented in this branch https://github.com/lubynets/AnalysisTree/tree/fix-template-func
Oleksii
AdrianMeyerAhrens commentedon Jul 7, 2026
Hi Oleksii,
yes, using that branch it works with both root versions which I tried (6.36.14 and 6.40.02)!
Thanks for the quick fix
Adrian
lubynets commentedon Jul 9, 2026
Fixed in PR #149