From cfe7450d4b6b4a1197e9ef8de206f1bb4baf151e Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 16 Jun 2015 20:05:45 +0100 Subject: [PATCH] hashtable swap allocator fix --- octa/internal/hashtable.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 */