This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/21796] (v7-branch) std::search not using std::find
- From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jun 2005 19:21:03 -0000
- Subject: [Bug libstdc++/21796] (v7-branch) std::search not using std::find
- References: <20050528075508.21796.pcarlini@suse.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-06-29 19:21 -------
Subject: Bug 21796
CVSROOT: /cvs/gcc
Module name: gcc
Branch: libstdcxx_so_7-branch
Changes by: paolo@gcc.gnu.org 2005-06-29 19:20:49
Modified files:
libstdc++-v3/include/bits: predefined_ops.h stl_algo.h
libstdc++-v3/testsuite/25_algorithms/search: 1.cc check_type.cc
libstdc++-v3/src: string-inst.cc
Log message:
2005-06-29 Chris Jefferson <chris@bubblescope.net>
PR libstdc++/21796
* include/bits/predefined_ops.h (__bind2nd, bind2nd): New.
* include/bits/stl_algo.h (search): Delegate to specializations.
(__search(,,,,,forward_iterator_tag): Tidy up original version of
std::search, add calls to find_if.
(__search(,,,,,random_access_iterator_tag): Add new random access
specialization.
* testsuite/25_algorithms/search/1.cc: Add new test.
* testsuite/25_algorithms/search/check_type.cc: Improve and extend
tests.
2005-06-29 Paolo Carlini <pcarlini@suse.de>
* src/string-inst.cc: Add explicit instantiations of __search and
__find_if.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/predefined_ops.h.diff?cvsroot=gcc&only_with_tag=libstdcxx_so_7-branch&r1=1.1.2.2&r2=1.1.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/stl_algo.h.diff?cvsroot=gcc&only_with_tag=libstdcxx_so_7-branch&r1=1.47.6.13&r2=1.47.6.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/25_algorithms/search/1.cc.diff?cvsroot=gcc&only_with_tag=libstdcxx_so_7-branch&r1=1.1.2.2&r2=1.1.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/25_algorithms/search/check_type.cc.diff?cvsroot=gcc&only_with_tag=libstdcxx_so_7-branch&r1=1.1.2.1&r2=1.1.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/src/string-inst.cc.diff?cvsroot=gcc&only_with_tag=libstdcxx_so_7-branch&r1=1.31.8.2&r2=1.31.8.3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21796