Skip to content

Commit a21852d

Browse files
Update templatesimplifier.cpp
1 parent 18e07f6 commit a21852d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/templatesimplifier.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ static bool areAllParamsTypes(const std::vector<const Token *> &params)
776776

777777
static bool isTemplateInstantion(const Token* tok)
778778
{
779-
if (!tok->isName())
779+
if (!tok->isName() || tok->isKeyword())
780780
return false;
781781
if (Token::Match(tok->tokAt(-1), "%type% %name% ::|<"))
782782
return true;

0 commit comments

Comments
 (0)