Using less<> (was: Re: [PATCH] Assign(__str, __pos, __n)...)

Paolo Carlini pcarlini@unitus.it
Sat Dec 15 13:18:00 GMT 2001


Nathan Myers wrote:

> On Sat, Dec 15, 2001 at 08:55:47PM +0100, Paolo Carlini wrote:
> > Is it ok with you if, for time being, I test and then commit a version
> > including only the first improvement, that is, using std::less??
>
> Of course.

Benjamin, Nathan,

in order to improve the patch as suggested by Nathan, I have to include
stl_function.h in std_string.h. Otherwise, the new patch just passed again make
check.

Still ok with this change?

Cheers,
Paolo.

////////////////

--- std_string.h.orig   Fri Nov  2 18:38:11 2001
+++ std_string.h        Sat Dec 15 21:54:21 2001
@@ -48,6 +48,7 @@
 #include <bits/type_traits.h>
 #include <bits/std_iosfwd.h>   // For operators >>, <<, and getline decls.
 #include <bits/stl_iterator.h>
+#include <bits/stl_function.h> // For less<>
 #include <bits/basic_string.h>

 #ifdef _GLIBCPP_NO_TEMPLATE_EXPORT





More information about the Libstdc++ mailing list