diff --git a/gtsam/inference/BayesTree-inl.h b/gtsam/inference/BayesTree-inl.h index 06e4d5053..95995a4e6 100644 --- a/gtsam/inference/BayesTree-inl.h +++ b/gtsam/inference/BayesTree-inl.h @@ -283,7 +283,7 @@ namespace gtsam { /* ************************************************************************* */ template<> inline BayesTree::BayesTree(const BayesNet& bayesNet) { - typename BayesNet::const_reverse_iterator rit; + BayesNet::const_reverse_iterator rit; for ( rit=bayesNet.rbegin(); rit != bayesNet.rend(); ++rit ) insert(*this, *rit); } @@ -352,19 +352,6 @@ namespace gtsam { typename CONTAINER::const_iterator lowestOrderedParent = min_element(parents.begin(), parents.end()); assert(lowestOrderedParent != parents.end()); return *lowestOrderedParent; - -// boost::optional parentCliqueRepresentative; -// boost::optional lowest; -// BOOST_FOREACH(Index p, parents) { -// size_t i = index(p); -// if (!lowest || i<*lowest) { -// lowest.reset(i); -// parentCliqueRepresentative.reset(p); -// } -// } -// if (!lowest) throw -// invalid_argument("BayesTree::findParentClique: no parents given or key not present in index"); -// return *parentCliqueRepresentative; } /* ************************************************************************* */