
5 Jan
2009
5 Jan
'09
9:22 a.m.
bool ACtr::pruneBad {
for ( tMap::index_iterator<timestamp>::type it = AContainer.get<timestamp>().begin(), it_end = AContainer.get<timestamp>().end();it != it_end; count++) { it = AContainer.erase(it); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ } }
You apply erase() to AContainer, i.e. to its 1st index, but you pass an iterator of the 2nd index. I guess you could write something like this: AContainer.get<timestamp>().erase(it);