This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[PATCH][libstdc++-v3 parallel mode] Fixing ambigious set_intersection
- From: Johannes Singler <singler at ira dot uka dot de>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 19 Mar 2008 16:37:44 +0100
- Subject: [PATCH][libstdc++-v3 parallel mode] Fixing ambigious set_intersection
Fixes an ambiguity by removing a superfluous copy of set_intersection.
Tested x86_64-unknown-linux-gnu: No regressions
Please approve.
2007-03-19 Johannes Singler <singler@ira.uka.de>
* include/parallel/set_operations.h: Removed set_intersection.
Johannes
Index: include/parallel/set_operations.h
===================================================================
--- include/parallel/set_operations.h (revision 133208)
+++ include/parallel/set_operations.h (working copy)
@@ -500,20 +500,6 @@
intersection_func<InputIterator, OutputIterator, Comparator>(comp));
}
-
-template<typename InputIterator, typename OutputIterator>
- inline OutputIterator
- set_intersection(InputIterator begin1, InputIterator end1,
- InputIterator begin2, InputIterator end2,
- OutputIterator result)
- {
- typedef std::iterator_traits<InputIterator> traits_type;
- typedef typename traits_type::value_type value_type;
-
- return set_intersection(begin1, end1, begin2, end2, result,
- std::less<value_type>());
- }
-
template<typename InputIterator,
typename OutputIterator,
typename Comparator>