Re: [Boost-bugs] [Boost C++ Libraries] #3215: Clamp function

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3215: Clamp function
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-28 09:49:33


#3215: Clamp function
----------------------------------+-----------------------------------------
 Reporter: olafvdspek@… | Owner: marshall
     Type: Feature Requests | Status: assigned
Milestone: Boost 1.40.0 | Component: None
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: |
----------------------------------+-----------------------------------------

Comment(by OlafvdSpek@…):

> return val < lo ? lo : val < hi ? val : hi;

 Should be:

 return val < lo ? lo : hi < val ? hi : val;

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3215#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC