Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3215: Clamp function
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-28 17:24:45
#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 marshall):
I can see putting the value first, that's no problem.
However, I don't see the difference in the two code snippets.
When hi == val, the first one returns hi, and the second one returns val.
When comparing objects, the first calls val.operator< ( hi ), the second
hi.operator< ( val ).
So?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3215#comment:5> 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