fixed_typemap.hpp: forgot destructor

This commit is contained in:
Nekotekina 2020-02-27 12:48:40 +03:00
parent f71cdb4eb8
commit d5c85f308a

View File

@ -78,6 +78,16 @@ namespace stx
std::swap(m_init_count, x.m_init_count);
}
~manual_fixed_typemap()
{
if (!m_list)
{
return;
}
reset();
}
// Destroy all objects and keep them in uninitialized state, must be called first
void reset() noexcept
{