Skip to content

Commit

Permalink
fixing build with gtsam 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Apr 2, 2024
1 parent 76f63ab commit 9cb0046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions corelib/src/optimizer/OptimizerGTSAM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ std::map<int, Transform> OptimizerGTSAM::optimize(
#if GTSAM_VERSION_NUMERIC >= 40200
for(gtsam::Values::deref_iterator iter=values.begin(); iter!=values.end(); ++iter)
#else
for(gtsam::Values::iterator iter=values.begin(); iter!=values.end(); ++iter)
for(gtsam::Values::const_iterator iter=values.begin(); iter!=values.end(); ++iter)
#endif
{
int key = (int)iter->key;
Expand Down Expand Up @@ -876,7 +876,7 @@ std::map<int, Transform> OptimizerGTSAM::optimize(
#if GTSAM_VERSION_NUMERIC >= 40200
for(gtsam::Values::deref_iterator iter=values.begin(); iter!=values.end(); ++iter)
#else
for(gtsam::Values::iterator iter=values.begin(); iter!=values.end(); ++iter)
for(gtsam::Values::const_iterator iter=values.begin(); iter!=values.end(); ++iter)
#endif
{
int key = (int)iter->key;
Expand Down

0 comments on commit 9cb0046

Please sign in to comment.