This is the mail archive of the gcc-patches@gcc.gnu.org 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]

[v3] Clean-up some includes


Hi,

tested x86_64-linux, committed to mainline.

Paolo.

///////////////
2007-11-20  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/functional_hash.h: Do not include ext/numeric_traits.h.
	* include/tr1/functional_hash.h: Likewise.
	* include/std/functional: Include ext/type_traits.h.
	* include/tr1/functional: Likewise.
Index: include/std/functional
===================================================================
--- include/std/functional	(revision 130312)
+++ include/std/functional	(working copy)
@@ -64,6 +64,7 @@
 #  include <type_traits>
 #  include <bits/stringfwd.h>
 #  include <bits/functional_hash.h>
+#  include <ext/type_traits.h>
 #  if defined(_GLIBCXX_INCLUDE_AS_CXX0X)
 #    include <tr1_impl/functional>
 #  else
Index: include/bits/functional_hash.h
===================================================================
--- include/bits/functional_hash.h	(revision 130311)
+++ include/bits/functional_hash.h	(working copy)
@@ -45,8 +45,6 @@
 #  error C++0x header cannot be included from TR1 header
 #endif
 
-#include <ext/numeric_traits.h>
-
 #if defined(_GLIBCXX_INCLUDE_AS_CXX0X)
 #  include <tr1_impl/functional_hash.h>
 #else
Index: include/tr1/functional_hash.h
===================================================================
--- include/tr1/functional_hash.h	(revision 130311)
+++ include/tr1/functional_hash.h	(working copy)
@@ -41,8 +41,6 @@
 #  error TR1 header cannot be included from C++0x header
 #endif
 
-#include <ext/numeric_traits.h>
-
 #if defined(_GLIBCXX_INCLUDE_AS_TR1)
 #  include <tr1_impl/functional_hash.h>
 #else
Index: include/tr1/functional
===================================================================
--- include/tr1/functional	(revision 130312)
+++ include/tr1/functional	(working copy)
@@ -49,6 +49,7 @@
 #include <tr1/type_traits>
 #include <bits/stringfwd.h>
 #include <tr1/functional_hash.h>
+#include <ext/type_traits.h>
 
 #if defined(_GLIBCXX_INCLUDE_AS_TR1)
 #  include <tr1_impl/functional>

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