Proper initialization order.

This commit is contained in:
Bartosz Taudul 2017-09-22 22:25:18 +02:00
parent 5ba0fa8617
commit c0fe0e3e79

View File

@ -15,8 +15,8 @@ class Slab
public:
Slab()
: m_ptr( new char[BlockSize] )
, m_buffer( { m_ptr } )
, m_offset( 0 )
, m_buffer( { m_ptr } )
{
memUsage.fetch_add( BlockSize, std::memory_order_relaxed );
}