diff --git a/gtsam/nonlinear/ISAM2-impl.cpp b/gtsam/nonlinear/ISAM2-impl.cpp index b95b6f6fd..f62f2aafb 100644 --- a/gtsam/nonlinear/ISAM2-impl.cpp +++ b/gtsam/nonlinear/ISAM2-impl.cpp @@ -68,7 +68,7 @@ FastSet ISAM2::Impl::CheckRelinearizationFull(const VectorValues& delta, { FastSet relinKeys; - if(const double* threshold = boost::get(relinearizeThreshold)) + if(const double* threshold = boost::get(&relinearizeThreshold)) { BOOST_FOREACH(const VectorValues::KeyValuePair& key_delta, delta) { double maxDelta = key_delta.second.lpNorm(); @@ -76,7 +76,7 @@ FastSet ISAM2::Impl::CheckRelinearizationFull(const VectorValues& delta, relinKeys.insert(key_delta.first); } } - else if(const FastMap* thresholds = boost::get*>(relinearizeThreshold)) + else if(const FastMap* thresholds = boost::get >(&relinearizeThreshold)) { BOOST_FOREACH(const VectorValues::KeyValuePair& key_delta, delta) { const Vector& threshold = thresholds->find(Symbol(key_delta.first).chr())->second;