Ticket #7752: algorithm_minmax_element

File algorithm_minmax_element, 602 bytes (added by Paul A. Bristow, 10 years ago)

Path to suppress warning

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