Mark a FIXME. BOOST_FOREACH caches the end.

This commit is contained in:
JoelKatz
2012-04-23 16:01:02 -07:00
parent 012ac4a20b
commit 2d24d05174

View File

@@ -127,7 +127,7 @@ void ValidationCollection::addToGroup(newcoin::Validation& newValid)
// see if this hash is already on the list. If so add it there. // see if this hash is already on the list. If so add it there.
vector< Group >& groups=mIndexGroups[newValid.ledgerindex()]; vector< Group >& groups=mIndexGroups[newValid.ledgerindex()];
BOOST_FOREACH(Group& group,groups) BOOST_FOREACH(Group& group,groups)
{ { // FIXME: Cannot modify *at* *all* inside a BOOST_FOREACH
BOOST_FOREACH(newcoin::Validation& valid,group.mValidations) BOOST_FOREACH(newcoin::Validation& valid,group.mValidations)
{ {
if(valid.hash()==newValid.hash()) if(valid.hash()==newValid.hash())