Qualify fill_n properly.
Relying on ADL isn't a good idea as it's not always well implemented.
This commit is contained in:
parent
463b105d98
commit
3f25bd9530
|
@ -686,7 +686,7 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti
|
||||||
|
|
||||||
// create variable symbol table
|
// create variable symbol table
|
||||||
_variableList.resize(_tokenizer->varIdCount() + 1);
|
_variableList.resize(_tokenizer->varIdCount() + 1);
|
||||||
fill_n(_variableList.begin(), _variableList.size(), (const Variable*)NULL);
|
std::fill_n(_variableList.begin(), _variableList.size(), (const Variable*)NULL);
|
||||||
|
|
||||||
// check all scopes for variables
|
// check all scopes for variables
|
||||||
for (it = scopeList.begin(); it != scopeList.end(); ++it) {
|
for (it = scopeList.begin(); it != scopeList.end(); ++it) {
|
||||||
|
|
Loading…
Reference in New Issue