mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed compiler error. Closes #982
This commit is contained in:
parent
4fb57dea91
commit
0a0c131cdc
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include <base/system.h>
|
||||
|
||||
inline void assert(bool statement)
|
||||
inline void tl_assert(bool statement)
|
||||
{
|
||||
dbg_assert(statement, "assert!");
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue