Fix more inappropriate const_iterator usage.

This commit is contained in:
John Hood
2018-08-03 19:39:08 -04:00
parent 9a606c2f3d
commit 4aff80b872
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -378,8 +378,8 @@ void PredictionEngine::apply( Framebuffer &fb ) const
void PredictionEngine::kill_epoch( uint64_t epoch, const Framebuffer &fb )
{
for( cursors_type::const_iterator it = cursors.begin(); it != cursors.end(); ) {
cursors_type::const_iterator it_next = it;
for( cursors_type::iterator it = cursors.begin(); it != cursors.end(); ) {
cursors_type::iterator it_next = it;
it_next++;
if ( it->tentative( epoch - 1 )) {
cursors.erase( it );