1 --- crunch/crnlib/crn_sparse_array.h.orig 2014-05-14 19:48:47.133895619 +0200
2 +++ crunch/crnlib/crn_sparse_array.h 2014-05-14 21:54:04.600405597 +0200
5 inline T* alloc_group(bool nofail = false)
\r
7 - T* p = static_cast<T*>(alloc_space(N * sizeof(T)));
\r
8 + T* p = static_cast<T*>(this->alloc_space(N * sizeof(T)));
\r
13 CRNLIB_FAIL("Out of memory");
\r
16 - construct_group(p);
\r
17 + this->construct_group(p);
\r
19 m_num_active_groups++;
\r
22 CRNLIB_ASSERT(m_num_active_groups);
\r
23 m_num_active_groups--;
\r
25 - destruct_group(p);
\r
26 + this->destruct_group(p);
\r
29 + this->free_space(p);
\r
33 inline void init_default()
\r
35 - construct_element(reinterpret_cast<T*>(m_default));
\r
36 + this->construct_element(reinterpret_cast<T*>(m_default));
\r
39 inline void deinit_default()
\r
41 - destruct_element(reinterpret_cast<T*>(m_default));
\r
42 + this->destruct_element(reinterpret_cast<T*>(m_default));
\r