Boost C++ Libraries: Ticket #11802: Incorrect ordering after using insert() with ordered_range_t on a flat_multiset with a non-default sort order https://svn.boost.org/trac10/ticket/11802 <p> The attached file is a simple example. A set is created with the number 0 and two insertions are performed afterwards. The first one works, but the second one fails. The second one uses ordered_range_t. </p> <p> This worked in earlier releases of Boost. I'm not sure when it failed to work, but I think I updated from 1.55 to 1.59. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11802 Trac 1.4.3 mm-info@… Wed, 18 Nov 2015 11:04:06 GMT attachment set https://svn.boost.org/trac10/ticket/11802 https://svn.boost.org/trac10/ticket/11802 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.cc</span> </li> </ul> Ticket mm-info@… Wed, 18 Nov 2015 12:41:24 GMT <link>https://svn.boost.org/trac10/ticket/11802#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11802#comment:1</guid> <description> <p> Version 1.58 works as expected. </p> </description> <category>Ticket</category> </item> <item> <author>Benny Nielsen <mm-info@…></author> <pubDate>Thu, 19 Nov 2015 10:39:34 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11802#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11802#comment:2</guid> <description> <p> Clarification: My example is using flat_multiset although the title states flat_set. (I haven't actually tried anything but flat_multiset.) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 06 Dec 2015 08:59:34 GMT</pubDate> <title>summary changed https://svn.boost.org/trac10/ticket/11802#comment:3 https://svn.boost.org/trac10/ticket/11802#comment:3 <ul> <li><strong>summary</strong> <span class="trac-field-old">Incorrect ordering after using insert() with ordered_range_t on a flat_set with a non-default sort order</span> → <span class="trac-field-new">Incorrect ordering after using insert() with ordered_range_t on a flat_multiset with a non-default sort order</span> </li> </ul> Ticket Ion Gaztañaga Thu, 24 Dec 2015 00:28:47 GMT <link>https://svn.boost.org/trac10/ticket/11802#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11802#comment:4</guid> <description> <p> The error should be fixed in recently released Boost 1.60, in my tests your example passes fine. Could you please check if that's the problem is fixed for you? </p> </description> <category>Ticket</category> </item> <item> <author>Benny Nielsen <mm-info@…></author> <pubDate>Thu, 31 Dec 2015 12:50:43 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11802#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11802#comment:5</guid> <description> <p> I <strong>cannot</strong> confirm this fixes it for me. Neither in my primary use or in the example provided. Maybe it's compiler related. I'm on OS X: </p> <pre class="wiki">&gt; clang++ -std=c++11 -I/path/to/boost_1_60_0/ test.cc &amp;&amp; ./a.out Assertion failed: (*values.begin() == 1), function main, file test.cc, line 15. &gt; clang --version Apple LLVM version 7.0.2 (clang-700.1.81) Target: x86_64-apple-darwin15.2.0 Thread model: posix </pre><p> As previously noted it works with 1.58. It fails with both 1.59 and 1.60. </p> </description> <category>Ticket</category> </item> <item> <author>Benny Nielsen <mm-info@…></author> <pubDate>Sat, 02 Jan 2016 11:18:29 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11802#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11802#comment:6</guid> <description> <p> In case this helps, I can make it work by reverting flat_tree.hpp to the version used in 1.58. The main difference appears to be that ordered insertion is now handled by merge_unique in the vector class. I took a quick look at that and was a bit worried about this comment for a subfunction: </p> <pre class="wiki"> //Absolutely experimental. This function might change, disappear or simply crash! </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Thu, 11 Aug 2016 22:45:25 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11802#comment:7 https://svn.boost.org/trac10/ticket/11802#comment:7 <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> Reviewing old bugs that were forgotten. The error was reproduced and the following commit fixes it: </p> <p> <a class="ext-link" href="https://github.com/boostorg/container/commit/d5adae2edadbb43f78dcfcb21bd4792a8876f6f0"><span class="icon">​</span>https://github.com/boostorg/container/commit/d5adae2edadbb43f78dcfcb21bd4792a8876f6f0</a> </p> <p> Many thanks for your report and patience. </p> Ticket mm-info@… Fri, 12 Aug 2016 08:37:42 GMT <link>https://svn.boost.org/trac10/ticket/11802#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11802#comment:8</guid> <description> <p> Awesome! Thanks. </p> </description> <category>Ticket</category> </item> </channel> </rss>