[Patch] Final algo patch for v7-branch

Howard Hinnant hhinnant@apple.com
Thu Dec 15 20:19:00 GMT 2005


On Dec 15, 2005, at 10:54 AM, Paolo Carlini wrote:

>
> The below would be the last, hopefully final ;) iteration. Tested  
> x86-linux.

Nice catch on the std:: qualifiers for min/max. :-)

All the concept check stuff looks good to me.

Can you double check this one?

Index: src/string-inst.cc
===================================================================
--- src/string-inst.cc	(revision 106945)
+++ src/string-inst.cc	(working copy)
@@ -76,7 +76,7 @@
    template
      const C*
      __find_if(const C*, const C*,
-	      __gnu_cxx::__ops::__bind2nd<bool(*)(const C&, const C&), C>,
+	      __gnu_cxx::__ops::__bind2nd<C, C, bool(*)(const C&, const C&)>,
  	      random_access_iterator_tag);
  } // namespace std

I think it should be:

Index: src/string-inst.cc
===================================================================
--- src/string-inst.cc	(revision 106945)
+++ src/string-inst.cc	(working copy)
@@ -76,7 +76,7 @@
    template
      const C*
      __find_if(const C*, const C*,
-	      __gnu_cxx::__ops::__bind2nd<bool(*)(const C&, const C&), C>,
+	      __gnu_cxx::__ops::__bind2nd<C, bool(*)(const C&, const C&)>,
  	      random_access_iterator_tag);
  } // namespace std

(extra "C, " removed)

-Howard



More information about the Libstdc++ mailing list