Boost logo

Boost :

From: Kevin S. Van Horn (Kevin.VanHorn_at_[hidden])
Date: 2002-10-16 21:17:47


Douglas Gregor writes:

> there are yet more subtle errors (this one from the Comeau standard
> library, libcomo) that aren't caught by the concept checks library:
>
> template <class _InputIter, class _Predicate>
> inline _InputIter find_if(_InputIter __first, _InputIter __last,
> _Predicate __pred,
> input_iterator_tag)
> {
> while (__first != __last && !__pred(*__first))
> ++__first;
> return __first;
> }

OK, I'm stumped. What's wrong with the above code? (The GNU libstdc++
code is identical.)


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