Fix implicit typenames.
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
#define RAGE_UTIL_H
|
#define RAGE_UTIL_H
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
#include <vector>
|
||||||
#include "Foreach.h"
|
#include "Foreach.h"
|
||||||
|
|
||||||
#define SAFE_DELETE(p) { delete (p); (p)=NULL; }
|
#define SAFE_DELETE(p) { delete (p); (p)=NULL; }
|
||||||
@@ -484,9 +485,10 @@ template<class T>
|
|||||||
void GetAsNotInBs( const vector<T> &as, const vector<T> &bs, vector<T> &difference )
|
void GetAsNotInBs( const vector<T> &as, const vector<T> &bs, vector<T> &difference )
|
||||||
{
|
{
|
||||||
vector<T> bsUnmatched = bs;
|
vector<T> bsUnmatched = bs;
|
||||||
FOREACH_CONST( T, as, a )
|
// Cannot use FOREACH_CONST here because vector<T>::const_iterator is an implicit type.
|
||||||
|
for( typename vector<T>::const_iterator a = as.begin(); a != as.end(); ++a )
|
||||||
{
|
{
|
||||||
vector<T>::iterator iter = find( bsUnmatched.begin(), bsUnmatched.end(), *a );
|
typename vector<T>::iterator iter = find( bsUnmatched.begin(), bsUnmatched.end(), *a );
|
||||||
if( iter != bsUnmatched.end() )
|
if( iter != bsUnmatched.end() )
|
||||||
bsUnmatched.erase( iter );
|
bsUnmatched.erase( iter );
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user