Boost logo

Boost :

Subject: Re: [boost] [Review:Algorithms] Order of args to clamp
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2011-09-26 14:38:08


On Sep 26, 2011, at 11:16 AM, Dave Abrahams wrote:

>
> on Mon Sep 26 2011, Marshall Clow <mclow.lists-AT-gmail.com> wrote:
>
>> BTW, clamp_range defined like this fails on the following code:
>>
>> int inputs [] = { 0, 1, 2, 3, 4 };
>> clamp_range ( &inputs[0], &inputs[5], 2, 4 );
>>
>> because pointers are not iterators.
>
> Since when?!

What I meant to say is that they don't have a value_type typedef, but that doesn't matter because I should have been using itertor_traits<Iter>::value_type anyway.
Again, sorry for the noise.

-- Marshall

Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk