pool: don't forget to initialise the store pointer in move construction
This commit is contained in:
parent
5e17e5d275
commit
5ba25330d0
1
pool.hpp
1
pool.hpp
@ -52,6 +52,7 @@ namespace cruft {
|
|||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
pool (pool &&rhs) noexcept
|
pool (pool &&rhs) noexcept
|
||||||
: m_available (0)
|
: m_available (0)
|
||||||
|
, m_store (nullptr)
|
||||||
, m_capacity (0)
|
, m_capacity (0)
|
||||||
{
|
{
|
||||||
std::swap (m_available, rhs.m_available);
|
std::swap (m_available, rhs.m_available);
|
||||||
|
Loading…
Reference in New Issue
Block a user