$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [Review:Algorithms] Order of args to clamp
From: Peter Dimov (pdimov_at_[hidden])
Date: 2011-09-26 13:10:17
Dave Abrahams 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)
Then clamp should be
template<class T> T clamp( T const & value,
typename identity<T>::type const & low,
typename identity<T>::type const & high );