Skip to content

Commit

Permalink
Fix: map iterator for C++98
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrada committed Mar 8, 2024
1 parent 26d1642 commit 3b2b06a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/term/Function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,9 @@ namespace fuzzylite {
if (not _root.get())
throw Exception("[function error] function <" + _formula + "> not loaded.", FL_AT);
if (localVariables)
for (auto it = localVariables->begin(); it != localVariables->end(); ++it)
for (std::map<std::string, scalar>::const_iterator it = localVariables->begin();
it != localVariables->end();
++it)
variables[it->first] = it->second;
return _root->evaluate(&this->variables);
}
Expand Down

0 comments on commit 3b2b06a

Please sign in to comment.