From fc59f36ba6f7c91d81a6616f251b8adb6a294e85 Mon Sep 17 00:00:00 2001 From: Yong-Dian Jian Date: Thu, 14 Oct 2010 02:47:06 +0000 Subject: [PATCH] fix a iterator bug --- inference/graph-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inference/graph-inl.h b/inference/graph-inl.h index 6bfbc174e..995e845e7 100644 --- a/inference/graph-inl.h +++ b/inference/graph-inl.h @@ -235,7 +235,7 @@ void split(const G& g, const PredecessorMap& tree, G& Ab1, G& Ab2) { typedef typename G::sharedFactor F ; - BOOST_FOREACH(const F& factor, g.factors_) + BOOST_FOREACH(const F& factor, g) { if (factor->keys().size() > 2) throw(invalid_argument("split: only support factors with at most two keys"));