--- C:/Users/Paul/AppData/Local/Temp/minmax_element.hpp-revBASE.svn000.tmp.hpp Thu Jul 27 11:27:37 2006 +++ I:/boost-trunk/boost/algorithm/minmax_element.hpp Tue Nov 27 17:27:01 2012 @@ -100,7 +100,10 @@ // if odd number of elements, treat last element if (first != last) { // odd number of elements if (comp(first, min_result)) - min_result = first, potential_min_result = last; + { + min_result = first; + potential_min_result = last; + } else if (comp(max_result, first)) max_result = first; }