Skip to content
Snippets Groups Projects
Verified Commit c607e2a6 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

C++20 modernization: use std::ranges::none_of

parent d209dd3d
Branches
No related tags found
No related merge requests found
/*
* Copyright © 2003-2022 Dynare Team
* Copyright © 2003-2024 Dynare Team
*
* This file is part of Dynare.
*
......@@ -57,8 +57,8 @@ SymbolList::checkPass(WarningConsolidation& warnings, const vector<SymbolType>&
throw SymbolListException {"Variable " + symbol + " was not declared."};
}
if (none_of(types.begin(), types.end(),
[&](SymbolType type) { return symbol_table.getType(symbol) == type; }))
if (ranges::none_of(types,
[&](SymbolType type) { return symbol_table.getType(symbol) == type; }))
{
string valid_types;
for (auto type : types)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment