diff --git a/octa/internal/hashtable.h b/octa/internal/hashtable.h index 77d66f7..e5edfcf 100644 --- a/octa/internal/hashtable.h +++ b/octa/internal/hashtable.h @@ -427,7 +427,10 @@ namespace detail { octa::swap(p_len, h.p_len); octa::swap(p_chunks, h.p_chunks); octa::swap(p_unused, h.p_unused); - octa::swap(p_data, h.p_data); + octa::swap(p_data.first(), h.p_data.first()); + octa::swap(p_data.second().second(), h.p_data.second().second()); + if (octa::AllocatorPropagateOnContainerSwap::value) + octa::swap(p_data.second().first(), h.p_data.second().first()); } }; } /* namespace detail */