|
Boost : |
Subject: Re: [boost] [Review:Algorithms] Order of args to clamp
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-09-26 12:31:42
on Mon Sep 26 2011, Olaf van der Spek <ml-AT-vdspek.org> wrote:
> On Mon, Sep 26, 2011 at 5:04 PM, Christian Holmquist
> <c.holmquist_at_[hidden]> wrote:
>>> Is this really the fault of clamp() though?
>>>
>> No, but clamp can avoid exposing this inherited problem, just as
>> std::min/std::max does.
>
> min and max have two 'equivalent' parameters. clamp doesn't,
That's presuming some notion of the meaning of "clamp" that may not be
shared by everyone here.
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk