re PR libstdc++/27162 (search_n uses == when it should use binary_pred)
2006-04-14 Douglas Gregor <dgregor@cs.indiana.edu> PR libstdc++/27162 * include/bits/stl_algo.h (__search_n(,,,, _BinaryPredicate, std::forward_iterator_tag)): Use __binary_pred, not ==. From-SVN: r112957
This commit is contained in:
parent
43b373a2a5
commit
008712ae1c
@ -1,3 +1,9 @@
|
||||
2006-04-14 Douglas Gregor <dgregor@cs.indiana.edu>
|
||||
|
||||
PR libstdc++/27162
|
||||
* include/bits/stl_algo.h (__search_n(,,,, _BinaryPredicate,
|
||||
std::forward_iterator_tag)): Use __binary_pred, not ==.
|
||||
|
||||
2006-04-10 Matthias Klose <doko@debian.org>
|
||||
|
||||
* testsuite/lib/libstdc++.exp (libstdc++_init): Recognize multilib
|
||||
|
@ -759,7 +759,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
__n = __count;
|
||||
_ForwardIterator __i = __first;
|
||||
++__i;
|
||||
while (__i != __last && __n != 1 && *__i == __val)
|
||||
while (__i != __last && __n != 1 && __binary_pred(*__i, __val))
|
||||
{
|
||||
++__i;
|
||||
--__n;
|
||||
|
Loading…
Reference in New Issue
Block a user