<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:mclow.lists@gmail.com" title="Marshall Clow (home) <mclow.lists@gmail.com>"> <span class="fn">Marshall Clow (home)</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - min_element doesn't produce the first minimum element in some cases"
   href="http://llvm.org/bugs/show_bug.cgi?id=19547">bug 19547</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>ASSIGNED
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - min_element doesn't produce the first minimum element in some cases"
   href="http://llvm.org/bugs/show_bug.cgi?id=19547#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - min_element doesn't produce the first minimum element in some cases"
   href="http://llvm.org/bugs/show_bug.cgi?id=19547">bug 19547</a>
              from <span class="vcard"><a class="email" href="mailto:mclow.lists@gmail.com" title="Marshall Clow (home) <mclow.lists@gmail.com>"> <span class="fn">Marshall Clow (home)</span></a>
</span></b>
        <pre>There it is:  25.4 [alg.sorting], which lists the requirements for a comparison
function.

p3: For algorithms other than those described in 25.4.3 to work correctly, comp
has to induce a strict weak ordering on the values.

Note that if you pass < (which does induce a strict weak ordering), the current
implementation of min_element returns the correct iterator.

Committed revision 207232 to add tests for this case.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>