diff --git a/crnlib/crn_sparse_array.h b/crnlib/crn_sparse_array.h index 62a93a7..f7c3fcf 100644 --- a/crnlib/crn_sparse_array.h +++ b/crnlib/crn_sparse_array.h @@ -355,7 +355,7 @@ namespace crnlib inline T* alloc_group(bool nofail = false) { - T* p = static_cast(alloc_space(N * sizeof(T))); + T* p = static_cast(this->alloc_space(N * sizeof(T))); if (!p) { @@ -365,7 +365,7 @@ namespace crnlib CRNLIB_FAIL("Out of memory"); } - construct_group(p); + this->construct_group(p); m_num_active_groups++; @@ -379,20 +379,20 @@ namespace crnlib CRNLIB_ASSERT(m_num_active_groups); m_num_active_groups--; - destruct_group(p); + this->destruct_group(p); - free_space(p); + this->free_space(p); } } inline void init_default() { - construct_element(reinterpret_cast(m_default)); + this->construct_element(reinterpret_cast(m_default)); } inline void deinit_default() { - destruct_element(reinterpret_cast(m_default)); + this->destruct_element(reinterpret_cast(m_default)); } };