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] Do not include <cassert> unnecessarily


Hi,

I'm looking a bit into libstdc++/9582 (more about it later)
and noticed these two avoidable #includes: there are _no_ uses
of the macro assert in those files.

If nobody objects, I mean to commit the below to both trunk and 3_3.

Paolo.

//////////
2003-02-17  Paolo Carlini  <pcarlini@unitus.it>

	* src/locale-inst.cc: Do not include <cassert>.
	* src/locale.cc: Likewise.
diff -urN libstdc++-v3-orig/src/locale-inst.cc libstdc++-v3/src/locale-inst.cc
--- libstdc++-v3-orig/src/locale-inst.cc	2003-02-11 22:58:27.000000000 +0100
+++ libstdc++-v3/src/locale-inst.cc	2003-02-17 22:02:30.000000000 +0100
@@ -34,7 +34,6 @@
 #include <cstdlib>
 #include <clocale>
 #include <cstring>
-#include <cassert>
 #include <locale>
 
 namespace std
diff -urN libstdc++-v3-orig/src/locale.cc libstdc++-v3/src/locale.cc
--- libstdc++-v3-orig/src/locale.cc	2003-02-11 22:58:27.000000000 +0100
+++ libstdc++-v3/src/locale.cc	2003-02-17 22:02:19.000000000 +0100
@@ -28,7 +28,6 @@
 
 #include <clocale>
 #include <cstring>
-#include <cassert>
 #include <cctype>
 #include <cwctype>     // For towupper, etc.
 #include <locale>

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