Skip to content

Commit bb0d24b

Browse files
authored
ags: Fix iterator template (#628)
Closes #627
1 parent 43fe280 commit bb0d24b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/algs/ags/solver.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ void NLPSolver::UpdateH(double newValue, int index)
341341
}
342342
}
343343

344-
void NLPSolver::UpdateAllH(std::set<Interval*>::iterator iterator)
344+
void NLPSolver::UpdateAllH(std::set<Interval*, ags::CompareIntervals>::iterator iterator)
345345
{
346346
Interval* pInterval = *iterator;
347347
if (pInterval->pl.idx < 0)

src/algs/ags/solver.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class NLPSolver
7979
void InitDataStructures();
8080
void ClearDataStructures();
8181

82-
void UpdateAllH(std::set<Interval*>::iterator);
82+
void UpdateAllH(std::set<Interval*, ags::CompareIntervals>::iterator);
8383
void UpdateH(double newValue, int index);
8484
double CalculateR(Interval*) const;
8585
double GetNextPointCoordinate(Interval*) const;

0 commit comments

Comments
 (0)