Changes between Version 1 and Version 2 of Ticket #12821


Ignore:
Timestamp:
Feb 8, 2017, 5:16:25 PM (6 years ago)
Author:
Domagoj Šarić
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12821 – Description

    v1 v2  
    44
    55I want to reverse sort these two arrays so I do:
     6
     7{{{
    68auto const comparator( []( auto const & left, auto const & right ) noexcept { return left.first < right.first; } );
    79auto const rightshift{ []( custom_iterator::reference const x, unsigned const offset ) noexcept { return x.first >> offset; } };
    810
     11}}}
     12
    913...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...