fix a iterator bug
parent
5cbf67eeba
commit
fc59f36ba6
|
|
@ -235,7 +235,7 @@ void split(const G& g, const PredecessorMap<Key>& tree, G& Ab1, G& Ab2) {
|
||||||
|
|
||||||
typedef typename G::sharedFactor F ;
|
typedef typename G::sharedFactor F ;
|
||||||
|
|
||||||
BOOST_FOREACH(const F& factor, g.factors_)
|
BOOST_FOREACH(const F& factor, g)
|
||||||
{
|
{
|
||||||
if (factor->keys().size() > 2)
|
if (factor->keys().size() > 2)
|
||||||
throw(invalid_argument("split: only support factors with at most two keys"));
|
throw(invalid_argument("split: only support factors with at most two keys"));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue