summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-01 12:34:16 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-01 12:34:16 +0000
commit3d532fdd9e3b910125490cdd660086ded1d84ccb (patch)
treecb3c28f0f78881dd028516d2beb35ca448103d4c /libstdc++-v3/include
parentb14c3ddd1b8749827e97a72b0ccb84fc2d5edc15 (diff)
downloadppe42-gcc-3d532fdd9e3b910125490cdd660086ded1d84ccb.tar.gz
ppe42-gcc-3d532fdd9e3b910125490cdd660086ded1d84ccb.zip
* include/bits/stl_queue.h: Include missing header.
* include/bits/stl_stack.h: Likewise. * testsuite/23_containers/priority_queue/requirements/ uses_allocator.cc: New. * testsuite/23_containers/queue/requirements/uses_allocator.cc: New. * testsuite/23_containers/stack/requirements/uses_allocator.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@215756 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/bits/stl_queue.h3
-rw-r--r--libstdc++-v3/include/bits/stl_stack.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/libstdc++-v3/include/bits/stl_queue.h b/libstdc++-v3/include/bits/stl_queue.h
index b516664b612..32124e34b50 100644
--- a/libstdc++-v3/include/bits/stl_queue.h
+++ b/libstdc++-v3/include/bits/stl_queue.h
@@ -58,6 +58,9 @@
#include <bits/concept_check.h>
#include <debug/debug.h>
+#if __cplusplus >= 201103L
+# include <bits/uses_allocator.h>
+#endif
namespace std _GLIBCXX_VISIBILITY(default)
{
diff --git a/libstdc++-v3/include/bits/stl_stack.h b/libstdc++-v3/include/bits/stl_stack.h
index ee187da8ee3..f4bb72c3891 100644
--- a/libstdc++-v3/include/bits/stl_stack.h
+++ b/libstdc++-v3/include/bits/stl_stack.h
@@ -58,6 +58,9 @@
#include <bits/concept_check.h>
#include <debug/debug.h>
+#if __cplusplus >= 201103L
+# include <bits/uses_allocator.h>
+#endif
namespace std _GLIBCXX_VISIBILITY(default)
{
OpenPOWER on IntegriCloud