diff -r f9e21a2ac558 -r 8eded451c936 sourcehook/sh_stack.h --- a/sourcehook/sh_stack.h Sun Oct 07 22:10:07 2007 +0000 +++ b/sourcehook/sh_stack.h Sun Oct 07 22:24:01 2007 +0000 @@ -20,15 +20,16 @@ template class CStack { - static const int SECTOR_SIZE = 16; + static const size_t SECTOR_SIZE = 16; - CVector m_Sectors; // Stores sectors + CVector m_Sectors; // Stores sectors size_t m_UsedSize; void clear() { - for (CVector::iterator sect_iter = m_Sectors.begin(); sect_iter != m_Sectors.end(); ++sect_iter) + typename CVector::iterator sect_iter; + for (sect_iter = m_Sectors.begin(); sect_iter != m_Sectors.end(); ++sect_iter) { delete [] *sect_iter; } @@ -114,7 +115,7 @@ CStack(const CStack &other) { - for (CVector::iterator sect_iter = other.m_Sectors.begin(); + for (typename CVector::iterator sect_iter = other.m_Sectors.begin(); sect_iter != other.m_Sectors.end(); ++sect_iter) { m_Sectors.push_back(new T[SECTOR_SIZE]); @@ -127,7 +128,7 @@ CStack & operator =(const CStack &other) { clear(); - for (CVector::iterator sect_iter = other.m_Sectors.begin(); + for (typename CVector::iterator sect_iter = other.m_Sectors.begin(); sect_iter != other.m_Sectors.end(); ++sect_iter) { m_Sectors.push_back(new T[SECTOR_SIZE]);