This is the mail archive of the mailing list for the GCC 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]

Re: [patch] : Add return value

This must have just got nudged into appearance by the introduction of the inline. There was a missing "return" in partial_sort_copy... woops. The attached patch adds it.

There are a couple of other returns missing (but only in classes used only in the testsuite). I'm going to look at those now.

Attachment: ChangeLog-partial_sort_copy
Description: application/text

Index: stl_algo.h
RCS file: /cvsroot/gcc/gcc/libstdc++-v3/include/bits/stl_algo.h,v
retrieving revision
diff -u -r1.47.6.12 stl_algo.h
--- stl_algo.h	7 Jun 2005 00:29:11 -0000
+++ stl_algo.h	13 Jun 2005 14:27:52 -0000
@@ -2285,8 +2285,8 @@
-      std::partial_sort_copy(__first, __last, __result_first, __result_last, 
-			     __gnu_cxx::__ops::less());
+      return std::partial_sort_copy(__first, __last, __result_first,
+				    __result_last, __gnu_cxx::__ops::less());

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