From 56d7f24a3799e561faf0b7134132bcec4a3d33f9 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 21 Apr 2012 18:23:48 +0000 Subject: [PATCH] core: Append() was missing for arrays of single element structs. --- src/array.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/array.h b/src/array.h index 5b3e611d..e7bd5b10 100644 --- a/src/array.h +++ b/src/array.h @@ -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);