Evaluation order: Don't use this checker on C++11 code

This commit is contained in:
Daniel Marjamäki 2015-12-25 18:57:01 +01:00
parent 90148ce2a1
commit e6ff77d825
1 changed files with 1 additions and 1 deletions

View File

@ -2486,7 +2486,7 @@ void CheckOther::unusedLabelError(const Token* tok)
void CheckOther::checkEvaluationOrder()
{
// This checker is not written according to C++11 sequencing rules
if (!_tokenizer->isCPP() || _settings->standards.cpp != Standards::CPP11)
if (_tokenizer->isCPP() && _settings->standards.cpp >= Standards::CPP11)
return;
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();