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:
parent
583fa3089d
commit
d4c92e2f8a
|
@ -139,8 +139,8 @@ struct TieredRegion
|
||||||
|
|
||||||
bool Contains(unsigned int address, int size) const
|
bool Contains(unsigned int address, int size) const
|
||||||
{
|
{
|
||||||
std::vector<Island>::const_iterator iter = islands.begin();
|
typename std::vector<Island>::const_iterator iter = islands.begin();
|
||||||
std::vector<Island>::const_iterator end = islands.end();
|
typename std::vector<Island>::const_iterator end = islands.end();
|
||||||
for(; iter != end; ++iter)
|
for(; iter != end; ++iter)
|
||||||
if(iter->Contains(address, size))
|
if(iter->Contains(address, size))
|
||||||
return true;
|
return true;
|
||||||
|
@ -163,7 +163,8 @@ struct TieredRegion
|
||||||
|
|
||||||
TieredRegion()
|
TieredRegion()
|
||||||
{
|
{
|
||||||
Calculate(std::vector<unsigned int>());
|
std::vector<unsigned int> somevector;
|
||||||
|
Calculate(somevector);
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCEINLINE int NotEmpty()
|
FORCEINLINE int NotEmpty()
|
||||||
|
|
Loading…
Reference in New Issue