Boost logo

Boost :

Subject: Re: [boost] [Review:Algorithms] Order of args to clamp
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-09-26 14:18:07


on Mon Sep 26 2011, Christian Holmquist <c.holmquist-AT-gmail.com> wrote:

> On 26 September 2011 11:33, Dave Abrahams <dave_at_[hidden]> wrote:

>>
>> IMO it clearly should be:
>>
>> template<typename Iter>
>> void clamp_range(
>> Iter first, Iter last,
>> typename itertor_traits<Iter>::value_type const& high,
>> typename itertor_traits<Iter>::value_type const& low)
>
> +1.
> Can you go suggest to the committee and change find as well? :)

I think it's probably been suggested and that backward-compatibility
concerns are the problem. FWIW.

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