Range for with an iterator? Huh.

This commit is contained in:
Jason Felds
2013-05-01 22:37:28 -04:00
parent 9ffac354d5
commit 317537b575
+2 -2
View File
@@ -327,8 +327,8 @@ void InputFilter::Update( float fDeltaTime )
ReportButtonChange( di, IET_REPEAT );
}
FOREACH( ButtonStateMap::iterator, ButtonsToErase, it )
g_ButtonStates.erase( *it );
for (ButtonStateMap::iterator &it : ButtonsToErase)
g_ButtonStates.erase( it );
}
template<typename T, typename IT>