Boost logo

Boost :

Subject: Re: [boost] [Review:Algorithms] Order of args to clamp
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-09-25 13:45:05

on Sun Sep 25 2011, "Phil Endecott" <> wrote:

> Dave Abrahams wrote:
>> No, no, no. Sorry to be so hard-line about this, but no.
> Here's a quick benchmark comparing clamp with one template type
> parameter vs. three:


> Personally, I value that performance benefit above the
> easier-to-describe semantics that you want.

I notice that you *completely* skirted the question of what this
algorithm does and how it's documented.

Or, put another way, I can make that algorithm infinitely fast, since it
has no semantic description. It's easy to be fast if you don't care
about getting the right answer.

Dave Abrahams
BoostPro Computing

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