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:47:37

#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@…):

 Yes, except you put the value at the back instead of at the front, I'm not
 sure that's preferable.

 Would it be better to use separate templated types for lo and hi to avoid
 the issues with std::max and std::min? The return type is clear in this
 case, the type of the original value.

Ticket URL: <>
Boost C++ Libraries <>
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