This commit is contained in:
Dmitry-Me 2019-11-01 18:39:53 +03:00
parent 4f927ea6c7
commit f2cf71f6e9
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ void CheckClass::constructors()
if (classNameUsed)
operatorEqVarError(func.token, scope->className, var.name(), inconclusive);
} else if (func.access != AccessControl::Private || mSettings->standards.cpp >= Standards::CPP11) {
// If constructor is not in scope then we maybe using a oonstructor from a different template specialization
// If constructor is not in scope then we maybe using a constructor from a different template specialization
if (!precedes(scope->bodyStart, func.tokenDef))
continue;
const Scope *varType = var.typeScope();