]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/include/debug/macros.h
re PR libstdc++/34730 (Legal program doesn't compile with -D_GLIBCXX_DEBUG)
authorPaolo Carlini <pcarlini@suse.de>
Sun, 13 Jan 2008 01:34:58 +0000 (01:34 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 13 Jan 2008 01:34:58 +0000 (01:34 +0000)
commita4c07f2d9fd576786b98c6a2e4fdb17039e5511e
tree1e46f02ee8df7d4a9f796162ef33a4be1bca271c
parent5db2e9ca7dc5ab9bac4baad91c224ba7d8fc0c45
re PR libstdc++/34730 (Legal program doesn't compile with -D_GLIBCXX_DEBUG)

2008-01-12  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/34730
* include/debug/functions.h (__check_sorted_set,
__check_sorted_set_aux): Add.
(__check_sorted): Check StrictWeakOrdering.
* include/debug/macros.h (__glibcxx_check_strict_weak_ordering,
__glibcxx_check_strict_weak_ordering_pred): Remove.
(__glibcxx_check_sorted, __glibcxx_check_sorted_pred): Adjust.
(__glibcxx_check_sorted_set, __glibcxx_check_sorted_set_pred): Add.
* include/debug/debug.h (__glibcxx_requires_sorted_set,
__glibcxx_requires_sorted_set_pred): Add.
* include/bits/stl_algo.h (merge, includes, set_union,
set_intersection, set_difference, set_symmetric_difference):
Adjust, use __glibcxx_requires_sorted_set* instead.
* testsuite/25_algorithms/set_intersection/34730.cc: New.

From-SVN: r131500
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/set_intersection/34730.cc [new file with mode: 0644]