This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Clean-up some includes
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 20 Nov 2007 15:07:48 +0100
- Subject: [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>