diff options
author | Paolo Carlini <pcarlini@suse.de> | 2008-03-13 17:35:40 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2008-03-13 17:35:40 +0000 |
commit | a6becb0ef51f3ccbe31fdb0eaa5f6448d575b062 (patch) | |
tree | a85e88374615fc41a7e03e165a5010bbe0e81a41 /libstdc++-v3/include | |
parent | 2599b56f41927c9122e457bb811dc89a10164d2b (diff) | |
download | gcc-a6becb0ef51f3ccbe31fdb0eaa5f6448d575b062.zip gcc-a6becb0ef51f3ccbe31fdb0eaa5f6448d575b062.tar.gz gcc-a6becb0ef51f3ccbe31fdb0eaa5f6448d575b062.tar.bz2 |
re PR libstdc++/35541 (Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG)
2008-03-13 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/35541
* include/debug/functions.h (__check_sorted_set_aux): Fix signature.
* testsuite/25_algorithms/set_difference/35541.cc: New.
From-SVN: r133173
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r-- | libstdc++-v3/include/debug/functions.h | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/libstdc++-v3/include/debug/functions.h b/libstdc++-v3/include/debug/functions.h index 7e7562a..a2b5c5f 100644 --- a/libstdc++-v3/include/debug/functions.h +++ b/libstdc++-v3/include/debug/functions.h @@ -268,35 +268,31 @@ namespace __gnu_debug return __check_sorted_aux(__first, __last, __pred, _Category()); } - template<typename _InputIterator1, typename _InputIterator2> + template<typename _InputIterator> inline bool - __check_sorted_set_aux(const _InputIterator1& __first, - const _InputIterator1& __last, - const _InputIterator2&, std::__true_type) + __check_sorted_set_aux(const _InputIterator& __first, + const _InputIterator& __last, + std::__true_type) { return __check_sorted(__first, __last); } - template<typename _InputIterator1, typename _InputIterator2> + template<typename _InputIterator> inline bool - __check_sorted_set_aux(const _InputIterator1&, - const _InputIterator1&, - const _InputIterator2&, std::__false_type) + __check_sorted_set_aux(const _InputIterator&, + const _InputIterator&, + std::__false_type) { return true; } - template<typename _InputIterator1, typename _InputIterator2, - typename _Predicate> + template<typename _InputIterator, typename _Predicate> inline bool - __check_sorted_set_aux(const _InputIterator1& __first, - const _InputIterator1& __last, - const _InputIterator2&, _Predicate __pred, - std::__true_type) + __check_sorted_set_aux(const _InputIterator& __first, + const _InputIterator& __last, + _Predicate __pred, std::__true_type) { return __check_sorted(__first, __last, __pred); } - template<typename _InputIterator1, typename _InputIterator2, - typename _Predicate> + template<typename _InputIterator, typename _Predicate> inline bool - __check_sorted_set_aux(const _InputIterator1&, - const _InputIterator1&, - const _InputIterator2&, _Predicate, + __check_sorted_set_aux(const _InputIterator&, + const _InputIterator&, _Predicate, std::__false_type) { return true; } |