stl_algo.h (remove_if): Cast __pred result to bool.
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 24 Jun 2008 18:02:36 +0000 (18:02 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 24 Jun 2008 18:02:36 +0000 (18:02 +0000)
commita057a4f13b2599c7fa19bf08b9617b6b3f67d2d7
tree2800fa308a3c52951e5ba3bd057198eb129fc45c
parentdb16ca8c7fc577c0b677c726f511468d73cea670
stl_algo.h (remove_if): Cast __pred result to bool.

2008-06-24  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/stl_algo.h (remove_if): Cast __pred result to bool.
(copy_if): Add, per N2666.
* testsuite/25_algorithms/copy_if/requirements/explicit_instantiation/
2.cc: New.
* testsuite/25_algorithms/copy_if/requirements/explicit_instantiation/
pod.cc: Likewise.
* testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.

From-SVN: r137080
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/testsuite/25_algorithms/copy_if/requirements/explicit_instantiation/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/copy_if/requirements/explicit_instantiation/pod.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/headers/algorithm/synopsis.cc