forked from boostorg/algorithm
@ -99,8 +99,10 @@ namespace boost {
|
|||||||
|
|
||||||
// if odd number of elements, treat last element
|
// if odd number of elements, treat last element
|
||||||
if (first != last) { // odd number of elements
|
if (first != last) { // odd number of elements
|
||||||
if (comp(first, min_result))
|
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))
|
else if (comp(max_result, first))
|
||||||
max_result = first;
|
max_result = first;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user