Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81876 - trunk/boost/algorithm
From: marshall_at_[hidden]
Date: 2012-12-12 10:40:26


Author: marshall
Date: 2012-12-12 10:40:24 EST (Wed, 12 Dec 2012)
New Revision: 81876
URL: http://svn.boost.org/trac/boost/changeset/81876

Log:
Removed use of comma operator; Refs #7752
Text files modified:
   trunk/boost/algorithm/minmax_element.hpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/boost/algorithm/minmax_element.hpp
==============================================================================
--- trunk/boost/algorithm/minmax_element.hpp (original)
+++ trunk/boost/algorithm/minmax_element.hpp 2012-12-12 10:40:24 EST (Wed, 12 Dec 2012)
@@ -99,8 +99,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;
+ if (comp(first, min_result)) {
+ min_result = first;
+ potential_min_result = last;
+ }
         else if (comp(max_result, first))
           max_result = first;
       }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk