merge bug fix for minmax_element to release; Fixes #7752

[SVN r82049]
This commit is contained in:
Marshall Clow
2012-12-17 16:02:38 +00:00
parent 5ae4f848b3
commit 1660dc9d48

View File

@ -99,8 +99,10 @@ namespace boost {
// 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;
if (comp(first, min_result)) {
min_result = first;
potential_min_result = last;
}
else if (comp(max_result, first))
max_result = first;
}