fixed compiler error. Closes #982

This commit is contained in:
oy 2012-07-22 10:44:50 +02:00
parent 4fb57dea91
commit 0a0c131cdc
2 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,7 @@
#include <base/system.h>
inline void assert(bool statement)
inline void tl_assert(bool statement)
{
dbg_assert(statement, "assert!");
}

View file

@ -150,11 +150,11 @@ public:
}
bool empty() const { return begin >= end; }
void pop_front() { assert(!empty()); begin++; }
void pop_back() { assert(!empty()); end--; }
T& front() { assert(!empty()); return *begin; }
T& back() { assert(!empty()); return *(end-1); }
T& index(unsigned i) { assert(i >= 0 && i < (unsigned)(end-begin)); return begin[i]; }
void pop_front() { tl_assert(!empty()); begin++; }
void pop_back() { tl_assert(!empty()); end--; }
T& front() { tl_assert(!empty()); return *begin; }
T& back() { tl_assert(!empty()); return *(end-1); }
T& index(unsigned i) { tl_assert(i >= 0 && i < (unsigned)(end-begin)); return begin[i]; }
unsigned size() const { return (unsigned)(end-begin); }
plain_range slice(unsigned startindex, unsigned endindex)
{