Merge pull request #352 from Dmitry-Me/consistencyAsserts

Consistency asserts
This commit is contained in:
Lee Thomason 2015-06-19 16:54:54 -07:00
commit 73f08a3185
1 changed files with 3 additions and 0 deletions

View File

@ -253,14 +253,17 @@ public:
} }
int Capacity() const { int Capacity() const {
TIXMLASSERT( _allocated >= INITIAL_SIZE );
return _allocated; return _allocated;
} }
const T* Mem() const { const T* Mem() const {
TIXMLASSERT( _mem );
return _mem; return _mem;
} }
T* Mem() { T* Mem() {
TIXMLASSERT( _mem );
return _mem; return _mem;
} }