TemplateSimplifier: Allow that template parameter starts with ::

This commit is contained in:
Daniel Marjamäki 2012-04-15 18:15:36 +02:00
parent b0dc708b4d
commit ea148173bb
1 changed files with 2 additions and 0 deletions

View File

@ -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)