Boost logo

Boost Users :

Subject: [Boost-users] Boost.Serialization and ordering of multimap elements with the same key
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2012-09-24 21:50:40


At least in C++11, std::multimap is required to be stable for elements
with the same key. However, serializing and then deserializing a multimap
with Boost.Serialization can change the order of elements with the same
key to be different than their order in the input multimap. Would it be
possible to change multimap deserialization (since serialization appears
to preserve the order already) to ensure that the output multimap exactly
matches the input one? Thank you.

-- Jeremiah Willcock


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net