hashtable swap allocator fix

master
Daniel Kolesa 2015-06-16 20:05:45 +01:00
parent 1c6f3a74e1
commit cfe7450d4b
1 changed files with 4 additions and 1 deletions

View File

@ -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<A>::value)
octa::swap(p_data.second().first(), h.p_data.second().first());
}
};
} /* namespace detail */