diff --git a/pool.ipp b/pool.ipp index 5c656b73..0c4c3604 100644 --- a/pool.ipp +++ b/pool.ipp @@ -32,7 +32,7 @@ namespace util { static_assert (sizeof (T) >= sizeof (uintptr_t), "pool's chained block system requires that T be at least pointer sized"); - m_head = (node *)operator new (sizeof (T) * m_capacity); + m_head = static_cast (operator new (sizeof (T) * m_capacity)); m_next = m_head; for (unsigned int i = 0; i < m_capacity - 1; ++i) @@ -86,7 +86,7 @@ namespace util { void pool::release (T *data) { data->~T(); - node *newnode = (node *)data; + node *newnode = reinterpret_cast (data); newnode->_chain = m_next; m_next = newnode;