cmMakefile: Don't expect the VarStack iterator to support size().
This commit is contained in:
parent
390bc3244f
commit
5b7ff35c4d
@ -105,9 +105,8 @@ public:
|
||||
|
||||
bool RaiseScope(std::string const& var, const char* varDef, cmMakefile* mf)
|
||||
{
|
||||
assert(this->VarStack.size() > 0);
|
||||
|
||||
std::list<cmDefinitions>::reverse_iterator it = this->VarStack.rbegin();
|
||||
assert(it != this->VarStack.rend());
|
||||
++it;
|
||||
if(it == this->VarStack.rend())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user