Browse Source

core: Append() was missing for arrays of single element structs.

legacy
Sam Hocevar sam 12 years ago
parent
commit
56d7f24a37
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/array.h

+ 5
- 0
src/array.h View File

@@ -225,6 +225,11 @@ public:
return *this;
}

inline void Append(T1 const &x)
{
*this += x;
}

void Remove(int pos)
{
memmove(m_data + pos, m_data + pos + 1, m_count - pos - 1);


Loading…
Cancel
Save