diff --git a/stepmania/src/RageUtil.h b/stepmania/src/RageUtil.h index 5b940299b5..cfb0f708d8 100644 --- a/stepmania/src/RageUtil.h +++ b/stepmania/src/RageUtil.h @@ -4,6 +4,7 @@ #define RAGE_UTIL_H #include +#include #include "Foreach.h" #define SAFE_DELETE(p) { delete (p); (p)=NULL; } @@ -484,9 +485,10 @@ template void GetAsNotInBs( const vector &as, const vector &bs, vector &difference ) { vector bsUnmatched = bs; - FOREACH_CONST( T, as, a ) + // Cannot use FOREACH_CONST here because vector::const_iterator is an implicit type. + for( typename vector::const_iterator a = as.begin(); a != as.end(); ++a ) { - vector::iterator iter = find( bsUnmatched.begin(), bsUnmatched.end(), *a ); + typename vector::iterator iter = find( bsUnmatched.begin(), bsUnmatched.end(), *a ); if( iter != bsUnmatched.end() ) bsUnmatched.erase( iter ); else