Boost C++ Libraries: Ticket #12821: Crash in integer_sort when reverse sorting a struct https://svn.boost.org/trac10/ticket/12821 <p> I have a custom 'zip' iterator (that iterates over two arrays): </p> <ul><li>its value_type = std::pair&lt;std::uint32_t, T&gt; </li><li>its reference = std::pair&lt;std::uint32_t &amp;, T &amp;&gt;. </li></ul><p> I want to reverse sort these two arrays so I do: </p> <pre class="wiki">auto const comparator( []( auto const &amp; left, auto const &amp; right ) noexcept { return left.first &gt; right.first; } ); auto const rightshift{ []( custom_iterator::reference const x, unsigned const offset ) noexcept { return x.first &gt;&gt; offset; } }; </pre><p> ...but there is a crash in integer_sort in this case (if I do a 'normal' less-than compare, i.e. not a reversed sort) then it works... </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12821 Trac 1.4.3 Domagoj Šarić Wed, 08 Feb 2017 17:15:47 GMT description changed https://svn.boost.org/trac10/ticket/12821#comment:1 https://svn.boost.org/trac10/ticket/12821#comment:1 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/12821?action=diff&amp;version=1">diff</a>) </li> </ul> Ticket Domagoj Šarić Wed, 08 Feb 2017 17:16:25 GMT description changed https://svn.boost.org/trac10/ticket/12821#comment:2 https://svn.boost.org/trac10/ticket/12821#comment:2 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/12821?action=diff&amp;version=2">diff</a>) </li> </ul> Ticket Domagoj Šarić Wed, 08 Feb 2017 17:17:55 GMT description changed https://svn.boost.org/trac10/ticket/12821#comment:3 https://svn.boost.org/trac10/ticket/12821#comment:3 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/12821?action=diff&amp;version=3">diff</a>) </li> </ul> Ticket arachni_name <arachni@…> Mon, 23 Jul 2018 11:00:52 GMT cc, keywords set https://svn.boost.org/trac10/ticket/12821#comment:4 https://svn.boost.org/trac10/ticket/12821#comment:4 <ul> <li><strong>cc</strong> <span class="trac-author">arachni@…</span> added </li> <li><strong>keywords</strong> 1 added </li> </ul> <p> 1"'`-- </p> Ticket