This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]