From 2043b0c7ce615c5f682f7d4f12ba62fd6b2da66c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20=E2=80=98Touky=E2=80=99=20Huet?= Date: Wed, 17 Sep 2014 03:33:42 +0000 Subject: [PATCH] fixed array build --- src/lol/base/array.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lol/base/array.h b/src/lol/base/array.h index a9f85760..1cc70ffd 100644 --- a/src/lol/base/array.h +++ b/src/lol/base/array.h @@ -484,18 +484,18 @@ public: inline void Insert(ptrdiff_t pos, T... args) { ASSERT(pos >= 0); - ASSERT(pos <= m_count); + ASSERT(pos <= this->m_count); - if (m_count >= m_reserved) - Grow(); + if (this->m_count >= this->m_reserved) + this->Grow(); - for (ptrdiff_t i = m_count; i > pos; --i) + for (ptrdiff_t i = this->m_count; i > pos; --i) { - new (&m_data[i]) element_t(m_data[i - 1]); - m_data[i - 1].~element_t(); + new (&this->m_data[i]) element_t(this->m_data[i - 1]); + this->m_data[i - 1].~element_t(); } new (&this->m_data[pos]) tuple({ args... }); - ++m_count; + ++this->m_count; } };