This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix PR 17741
- From: Chris Jefferson <caj at cs dot york dot ac dot uk>
- To: libstdc++ at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 28 Oct 2004 16:27:58 +0100
- Subject: Fix PR 17741
PR 17741 is a simple problem, where the specialisations of find and
find_if have not been uglified. This simple patch fixes it.
Tested on x86/linux.
2004-10-28 Chris Jefferson <chris@bubblescope.net>
* include/bit/stl_algo.h: (find) Fix PR 17441. Uglify
input and random_access iterator specialisations.
Alter base function to call uglified version.
(find_if) ditto
* testsuite/25_algorithms/find.cc: add test for PR 17741.
169c169
< find(_InputIterator __first, _InputIterator __last,
---
> __find(_InputIterator __first, _InputIterator __last,
184c184
< find_if(_InputIterator __first, _InputIterator __last,
---
> __find_if(_InputIterator __first, _InputIterator __last,
199c199
< find(_RandomAccessIterator __first, _RandomAccessIterator __last,
---
> __find(_RandomAccessIterator __first, _RandomAccessIterator __last,
251c251
< find_if(_RandomAccessIterator __first, _RandomAccessIterator __last,
---
> __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last,
314,315c314,315
< return std::find(__first, __last, __val,
< std::__iterator_category(__first));
---
> return std::__find(__first, __last, __val,
> std::__iterator_category(__first));
336,337c336,337
< return std::find_if(__first, __last, __pred,
< std::__iterator_category(__first));
---
> return std::__find_if(__first, __last, __pred,
> std::__iterator_category(__first));