Boost C++ Libraries: Ticket #11829: Order of elements with same key in multimap not preserved https://svn.boost.org/trac10/ticket/11829 <p> The hinting in load_map_collection from boost/serialization/map.hpp destroys the relative order of elements with the same key. Since C++11 one can reconstruct multimaps where the elements preserve the original order. However, one has to use the multimap insertions without hinting. A quick fix would be to drop hinting for multimaps whereas for maps it can still be used. Possibly also hinting with the end pointer would work. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11829 Trac 1.4.3 boost@… Fri, 04 Dec 2015 07:43:17 GMT attachment set https://svn.boost.org/trac10/ticket/11829 https://svn.boost.org/trac10/ticket/11829 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">mwe.cpp</span> </li> </ul> <p> Minimum working example demonstrating bug. The relative order of the elements with the same key is destroyed when restoring the multimap. </p> Ticket boost@… Fri, 04 Dec 2015 07:46:03 GMT attachment set https://svn.boost.org/trac10/ticket/11829 https://svn.boost.org/trac10/ticket/11829 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">map.hpp</span> </li> </ul> <p> A simple workaround, where hinting is dropped for multimaps. </p> Ticket Robert Ramey Mon, 25 Apr 2016 01:11:49 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11829#comment:1 https://svn.boost.org/trac10/ticket/11829#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> I'm pretty sure I've fixed this but forget about it. Please check boost 1.61 </p> Ticket