re PR libstdc++/33613 (compilation inconsistency upper_bound vs lower_bound with...
authorPaolo Carlini <pcarlini@suse.de>
Wed, 3 Oct 2007 00:34:40 +0000 (00:34 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 3 Oct 2007 00:34:40 +0000 (00:34 +0000)
commitf5ad31630d0c4912080793a30092202792ca7c4a
tree0328271ff471154d9aad238bb651d9d32f41ce10
parentaf2778d32e8d916747229999a1a359a3af764018
re PR libstdc++/33613 (compilation inconsistency upper_bound vs lower_bound with -D_GLIBCXX_DEBUG)

2007-10-03  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/33613
* include/debug/functions.h (__check_partitioned): Rename to...
(__check_partioned_lower): ... this.
(__check_partioned_upper): Add.
* include/debug/macros.h (__glibcxx_check_partitioned): Rename to...
(__glibcxx_check_partitioned_lower): ... this, adjust.
(__glibcxx_check_partitioned_upper): Add.
* include/debug/debug.h (__glibcxx_requires_partitioned): Rename to...
(__glibcxx_requires_partitioned_lower): ... this, adjust.
(__glibcxx_requires_partitioned_upper): Add.
* include/bits/stl_algo.h (lower_bound, upper_bound, equal_range,
binary search): Use the above.
* testsuite/25_algorithms/lower_bound/33613.cc: New.
* testsuite/25_algorithms/upper_bound/33613.cc: Likewise.

From-SVN: r128974
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/include/debug/debug.h
libstdc++-v3/include/debug/functions.h
libstdc++-v3/include/debug/macros.h
libstdc++-v3/testsuite/25_algorithms/lower_bound/33613.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/upper_bound/33613.cc [new file with mode: 0644]