TemplateSimplifier: Allow that template parameter starts with ::
This commit is contained in:
parent
b0dc708b4d
commit
ea148173bb
|
@ -190,6 +190,8 @@ unsigned int TemplateSimplifier::templateParameters(const Token *tok)
|
||||||
++numberOfParameters;
|
++numberOfParameters;
|
||||||
|
|
||||||
// skip std::
|
// skip std::
|
||||||
|
if (tok->str() == "::")
|
||||||
|
tok = tok->next();
|
||||||
while (Token::Match(tok, "%var% ::"))
|
while (Token::Match(tok, "%var% ::"))
|
||||||
tok = tok->tokAt(2);
|
tok = tok->tokAt(2);
|
||||||
if (!tok)
|
if (!tok)
|
||||||
|
|
Loading…
Reference in New Issue