Boost logo

Boost :

Subject: Re: [boost] Boost.Algorithm design question
From: Eric Niebler (eric_at_[hidden])
Date: 2011-10-06 13:44:03


On 10/6/2011 8:51 AM, Marshall Clow wrote:
> On Oct 6, 2011, at 8:30 AM, Dave Abrahams wrote:
>> on Thu Oct 06 2011, lcaminiti <lorcaminiti-AT-gmail.com> wrote:
>>> I think what I am trying to ask is: Does anyone know why std::find does not
>>> use use iterator_traits::value?
>>
>> IIUC it was an oversight, and IIRC Stepanov's later work (EOP) does
>> restrict the type of "value".
>
> I could be misremembering, but didn't iterator_traits come after the first release of the STL?

Marshall, I don't see how it could. Without iterator_traits, raw
pointers couldn't be valid iterators, and that was an important part of
Stepanov's vision.

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