Fixed two compilation errors with g++:

- added typename to iterator definitions
- g++ doesn't like using an anonymous variable as a reference,
  added a local variable to make it happy
This commit is contained in:
yabause 2009-10-16 15:46:36 +00:00
parent 583fa3089d
commit d4c92e2f8a
1 changed files with 4 additions and 3 deletions

View File

@ -139,8 +139,8 @@ struct TieredRegion
bool Contains(unsigned int address, int size) const
{
std::vector<Island>::const_iterator iter = islands.begin();
std::vector<Island>::const_iterator end = islands.end();
typename std::vector<Island>::const_iterator iter = islands.begin();
typename std::vector<Island>::const_iterator end = islands.end();
for(; iter != end; ++iter)
if(iter->Contains(address, size))
return true;
@ -163,7 +163,8 @@ struct TieredRegion
TieredRegion()
{
Calculate(std::vector<unsigned int>());
std::vector<unsigned int> somevector;
Calculate(somevector);
}
FORCEINLINE int NotEmpty()