Fix gcc name-lookup, which requires to use the 'this' qualifier.

This commit is contained in:
Tomer Barletz
2016-07-11 18:31:20 -07:00
parent 133a78398f
commit 75632ff47e
+6 -6
View File
@@ -355,7 +355,7 @@ namespace crnlib
inline T* alloc_group(bool nofail = false)
{
T* p = static_cast<T*>(alloc_space(N * sizeof(T)));
T* p = static_cast<T*>(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<T*>(m_default));
this->construct_element(reinterpret_cast<T*>(m_default));
}
inline void deinit_default()
{
destruct_element(reinterpret_cast<T*>(m_default));
this->destruct_element(reinterpret_cast<T*>(m_default));
}
};