This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[v3] Tweak some includes per UK-300
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 12 Nov 2009 19:46:54 +0100
- Subject: [v3] Tweak some includes per UK-300
Hi,
tested x86_64-linux, without PCHs too, committed to mainline.
Thanks,
Paolo.
///////////////
2009-11-12 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/stl_algobase.h: Include the full <utility>, per
UK-300.
* include/bits/stl_algo.h: Tweak includes.
Index: include/bits/stl_algobase.h
===================================================================
--- include/bits/stl_algobase.h (revision 154123)
+++ include/bits/stl_algobase.h (working copy)
@@ -63,13 +63,12 @@
#include <bits/cpp_type_traits.h>
#include <ext/type_traits.h>
#include <ext/numeric_traits.h>
-#include <bits/stl_pair.h>
#include <bits/stl_iterator_base_types.h>
#include <bits/stl_iterator_base_funcs.h>
#include <bits/stl_iterator.h>
#include <bits/concept_check.h>
#include <debug/debug.h>
-#include <bits/move.h> // For std::swap and _GLIBCXX_MOVE
+#include <utility> // UK-300.
_GLIBCXX_BEGIN_NAMESPACE(std)
Index: include/bits/stl_algo.h
===================================================================
--- include/bits/stl_algo.h (revision 154123)
+++ include/bits/stl_algo.h (working copy)
@@ -61,8 +61,6 @@
#include <bits/algorithmfwd.h>
#include <bits/stl_heap.h>
#include <bits/stl_tempbuf.h> // for _Temporary_buffer
-#include <debug/debug.h>
-#include <initializer_list>
// See concept_check.h for the __glibcxx_*_requires macros.