Boost logo

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 <> 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

Boost list run by bdawes at, gregod at, cpdaniel at, john at