From 8b425869d3c4130c7afea032ed4b21a5e7ec9402 Mon Sep 17 00:00:00 2001 From: "Frank T. Bergmann" Date: Sun, 26 May 2024 12:25:15 +0000 Subject: [PATCH] #374: dont use auto incase someone uses c++ 98 --- src/sbml/validator/constraints/AssignmentCycles.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sbml/validator/constraints/AssignmentCycles.cpp b/src/sbml/validator/constraints/AssignmentCycles.cpp index f6a1be154..b5afebc5a 100644 --- a/src/sbml/validator/constraints/AssignmentCycles.cpp +++ b/src/sbml/validator/constraints/AssignmentCycles.cpp @@ -274,9 +274,9 @@ bool AssignmentCycles::alreadyExistsInMap(IdMap& map, const pair& dependency) const { - auto range = map.equal_range(dependency.first); + IdRange range = map.equal_range(dependency.first); - for (auto it = range.first; it != range.second; ++it) + for (IdIter it = range.first; it != range.second; ++it) { if (it->second == dependency.second) return true;