From 06d3eb564b1137a5b1c387f1c97c0476a582a515 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 19 Dec 2005 04:20:58 +0000 Subject: [PATCH] Fix implicit typenames. --- stepmania/src/RageUtil.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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