diff --git a/lib/templatesimplifier.cpp b/lib/templatesimplifier.cpp index 56509c8c5..6d80f8b21 100644 --- a/lib/templatesimplifier.cpp +++ b/lib/templatesimplifier.cpp @@ -190,6 +190,8 @@ unsigned int TemplateSimplifier::templateParameters(const Token *tok) ++numberOfParameters; // skip std:: + if (tok->str() == "::") + tok = tok->next(); while (Token::Match(tok, "%var% ::")) tok = tok->tokAt(2); if (!tok)