parent
9a92a4d950
commit
2f3f42d7f1
|
@ -537,7 +537,7 @@ void TemplateSimplifier::useDefaultArgumentValues(const std::list<Token *> &temp
|
||||||
if (Token::Match(tok, ">|>> class|struct %var%"))
|
if (Token::Match(tok, ">|>> class|struct %var%"))
|
||||||
classname = tok->strAt(2);
|
classname = tok->strAt(2);
|
||||||
templateParmDepth -= (1 + (tok->str() == ">>"));
|
templateParmDepth -= (1 + (tok->str() == ">>"));
|
||||||
if(0 == templateParmDepth)
|
if (0 == templateParmDepth)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -547,7 +547,7 @@ void TemplateSimplifier::useDefaultArgumentValues(const std::list<Token *> &temp
|
||||||
|
|
||||||
// default parameter value
|
// default parameter value
|
||||||
else if (Token::Match(tok, "= !!>")) {
|
else if (Token::Match(tok, "= !!>")) {
|
||||||
if(defaultedArgPos.insert(templatepar).second) {
|
if (defaultedArgPos.insert(templatepar).second) {
|
||||||
eq.push_back(tok);
|
eq.push_back(tok);
|
||||||
} else {
|
} else {
|
||||||
// Ticket #5605: Syntax error (two equal signs for the same parameter), bail out
|
// Ticket #5605: Syntax error (two equal signs for the same parameter), bail out
|
||||||
|
|
Loading…
Reference in New Issue