From e9ea8b426a25f90f1b20248a3b1ae970f14ff152 Mon Sep 17 00:00:00 2001 From: Manohar Paluri Date: Sun, 7 Mar 2010 06:29:23 +0000 Subject: [PATCH] fixed a bug in equals --- cpp/LieConfig-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/LieConfig-inl.h b/cpp/LieConfig-inl.h index d4e19ed8f..62417d06a 100644 --- a/cpp/LieConfig-inl.h +++ b/cpp/LieConfig-inl.h @@ -40,7 +40,7 @@ namespace gtsam { bool LieConfig::equals(const LieConfig& expected, double tol) const { if (values_.size() != expected.values_.size()) return false; BOOST_FOREACH(const typename Values::value_type& v, values_) { - if (!exists(v.first)) return false; + if (!expected.exists(v.first)) return false; if(!gtsam::equal(v.second, expected[v.first], tol)) return false; }