fix a iterator bug

release/4.3a0
Yong-Dian Jian 2010-10-14 02:47:06 +00:00
parent 5cbf67eeba
commit fc59f36ba6
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ void split(const G& g, const PredecessorMap<Key>& 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"));