
6 Oct
2011
6 Oct
'11
5:44 p.m.
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